Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2020-26287— Stored XSS in mermaid diagrams

Quick assessment

Affected
hedgedoc hedgedoc
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Hedgedoc是Hedgedoc团队的一个基于Javascript的Markdown文档实时编辑分享平台。 HedgeDoc 1.7.1之前版本存在安全漏洞,攻击者可利用该漏洞可以在HedgeDoc notes中注入任意的“脚本”标签。我们的内容安全策略禁止从大多数位置加载脚本,但“www.google-analytics.com”是允许的。使用谷歌标签管理器可以注入任意JavaScript并在页面加载时执行它。

CVSS 8.7 · High EPSS 1.45% · P71
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2020-26287

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Stored XSS in mermaid diagrams
Source: CVE Program / CVE List V5
Vulnerability Description
HedgeDoc is a collaborative platform for writing and sharing markdown. In HedgeDoc before version 1.7.1 an attacker can inject arbitrary `script` tags in HedgeDoc notes using mermaid diagrams. Our content security policy prevents loading scripts from most locations, but `www.google-analytics.com` is allowed. Using Google Tag Manger it is possible to inject arbitrary JavaScript and execute it on page load. Depending on the configuration of the instance, the attacker may not need authentication to create or edit notes. The problem is patched in HedgeDoc 1.7.1. As a workaround one can disallow `www.google-analytics.com` in the `Content-Security-Policy` header. Note that other ways to leverage the `script` tag injection might exist.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Hedgedoc 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Hedgedoc是Hedgedoc团队的一个基于Javascript的Markdown文档实时编辑分享平台。 HedgeDoc 1.7.1之前版本存在安全漏洞,攻击者可利用该漏洞可以在HedgeDoc notes中注入任意的“脚本”标签。我们的内容安全策略禁止从大多数位置加载脚本,但“www.google-analytics.com”是允许的。使用谷歌标签管理器可以注入任意JavaScript并在页面加载时执行它。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
hedgedoc hedgedoc < 1.7.1 -

II. Public POCs for CVE-2020-26287

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2020-26287

登录查看更多情报信息。

Patches & Fixes for CVE-2020-26287 (1)

Vendor Advisories for CVE-2020-26287 (1)

Other References for CVE-2020-26287 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2020-26287

No comments yet


Leave a comment