CVE-2021-35513
MEDIUM 6.1CVSS 3.1Cross-site Scripting in Mermaid
Mermaid before 8.11.0 allows XSS when the antiscript feature is used.
- Published
- 27 Jun 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-4f6x-49g2-99fm
- Sources
- NVDJSONOSV GHSA-4f6x-49g2-99fmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mermaid_project | mermaidcpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:* |
< 8.11.0 | 8.11.0 |
| OSV | npm | mermaid | < 8.11.0 | 8.11.0 |
References
- https://github.com/mermaid-js/mermaid/issues/2122 · Third Party Advisory, WEB
- https://github.com/mermaid-js/mermaid/pull/2123 · Patch, Third Party Advisory, WEB
- https://github.com/mermaid-js/mermaid/releases/tag/8.11.0-rc2 · Release Notes, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-35513 · ADVISORY
- https://github.com/mermaid-js/mermaid/pull/2123/commits/3d22fa5d2435de5acc18de6f88474a6e8675a60e · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 27 Jun 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 10 Dec 2021)