Every CVE Search/ Get API key

CVE-2021-35513

Cross-site Scripting in Mermaid

6.1 MediumFix available

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
None

Exploit likelihood

1.02%Up 0.2 points since Jun 28, 2021
90%50%10%1%

What each source reports

NVD Score used 6.1

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Record
CVE-2021-35513
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:P/A:N
Weakness
CWE-79
Updated
2026-11-02
CVE List No score

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Record
CVE-2021-35513
Updated
2026-11-02
EUVDEUVD-2021-2437 No score

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Record
EUVD-2021-2437
Updated
2026-11-03
GitHub AdvisoriesGHSA-4f6x-49g2-99fm 6.1

Cross-site Scripting in Mermaid

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Record
GHSA-4f6x-49g2-99fm
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
OSV 6.1

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Record
CVE-2021-35513
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2021-35513 6.1

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Record
DEBIAN-CVE-2021-35513
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVGHSA-4f6x-49g2-99fm 6.1

Cross-site Scripting in Mermaid

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Record
GHSA-4f6x-49g2-99fm
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
OSVUBUNTU-CVE-2021-35513 6.1

Mermaid before 8.11.0 allows XSS when the antiscript feature is used.

Record
UBUNTU-CVE-2021-35513
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mermaid
npm
before 8.11.0
8.11.0
node-mermaid
Debian:14
before 8.7.0+ds+~cs27.17.17-3, plus listed versions
8.7.0+ds+~cs27.17.17-18.7.0+ds+~cs27.17.17-28.7.0+ds+~cs27.17.17-2~bpo10+1
8.7.0+ds+~cs27.17.17-3
node-mermaid
Ubuntu:22.04:LTS
All versions, plus listed versions
8.7.0+ds+~cs27.17.17-38.13.3+ds+~cs26.13.21-18.13.3+ds+~cs26.13.21-28.13.8+~cs10.4.16-1
None known
node-mermaid
Ubuntu:26.10
All versions, plus listed versions
9.2.2+~2.0.0-19.2.2+~2.0.0-2
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-35513 is a medium vulnerability (CVSS 6.1) in Mermaid Project Mermaid, published June 27, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.02%, the 63rd percentile. Fixed in mermaid 8.11.0.

References

MoveEnter Open