CVE-2021-35513 json
Cross-site Scripting in Mermaid
published 2021-06-27 5 y ago modified 2026-06-17 4 mo ago also GHSA-4f6x-49g2-99fm , EUVD-2021-2437
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
Mermaid before 8.11.0 allows XSS when the antiscript feature is used.
Patch / fix
- npm mermaid 8.11.0
- mermaid_project mermaid 8.11.0
- node-mermaid Debian 14 8.7.0+ds+~cs27.17.17-3
debian advisories DEBIAN-CVE-2021-35513
Exploit prediction
1.02% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mermaid | <8.11.0 |
8.11.0 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/mermaid-js/mermaid/pull/2123
web, patch, third-party-advisory
-
github.com
/mermaid-js/mermaid/pull/2123/commits/3d22fa5d2435de5acc18de6f88474a6e8675a60e
web
-
github.com
/mermaid-js/mermaid/issues/2122
web, third-party-advisory
-
github.com
/mermaid-js/mermaid/releases/tag/8.11.0-rc2
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-35513
advisory
Sources
- CVE List CVE-2021-35513
- GitHub Advisory GHSA-4f6x-49g2-99fm
- NVD CVE-2021-35513
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.