{"id":"CVE-2021-35513","aliases":["CVE-2021-35513","GHSA-4f6x-49g2-99fm"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting in Mermaid","summary":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","source":"cvelist"},{"lang":"es","text":"Mermaid versiones anteriores a 8.11.0, permite un ataque de tipo XSS cuando la funcionalidad antiscript es usada","source":"nvd"}],"published":"2021-06-27T11:03:30.000Z","modified":"2026-06-17T03:57:36.537Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"8.11.0"}],"ecosystem":"npm","package":"mermaid","purl":"pkg:npm/mermaid","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"8.11.0"}],"vendor":"mermaid_project","product":"mermaid","cpe":"cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/mermaid-js/mermaid/issues/2122","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mermaid-js/mermaid/pull/2123","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mermaid-js/mermaid/releases/tag/8.11.0-rc2","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35513","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mermaid-js/mermaid/pull/2123/commits/3d22fa5d2435de5acc18de6f88474a6e8675a60e","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-35513","url":"https://www.cve.org/CVERecord?id=CVE-2021-35513","licence":"CVE Terms of Use","modified":"2024-08-04T00:40:47.091Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4f6x-49g2-99fm","url":"https://github.com/advisories/GHSA-4f6x-49g2-99fm","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:10.132Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-35513","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35513","licence":"Public domain","modified":"2026-06-17T03:57:36.537Z"}],"updatedAt":"2026-11-25T22:58:02.336Z","epss":{"score":0.01018,"percentile":0.62479,"date":"2026-11-30T12:00:22.000Z"}}