{"id":"CVE-2021-35513","aliases":["DEBIAN-CVE-2021-35513","EUVD-2021-2437","GHSA-4f6x-49g2-99fm","UBUNTU-CVE-2021-35513"],"status":"published","title":"Cross-site Scripting in Mermaid","description":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01018,"percentile":0.63771,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2021-06-27T11:03:30Z","modified":"2026-10-23T18:03:50Z","fixes":[{"ecosystem":"npm","package":"mermaid","fixed_in":["8.11.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:14","package":"node-mermaid","fixed_in":["8.7.0+ds+~cs27.17.17-3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"mermaid","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.11.0"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-mermaid","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.7.0+ds+~cs27.17.17-3"}]}],"versions":["8.7.0+ds+~cs27.17.17-1","8.7.0+ds+~cs27.17.17-2","8.7.0+ds+~cs27.17.17-2~bpo10+1"]},{"source":"osv","ecosystem":"npm","package":"mermaid","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.11.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"node-mermaid","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.7.0+ds+~cs27.17.17-3","8.13.3+ds+~cs26.13.21-1","8.13.3+ds+~cs26.13.21-2","8.13.8+~cs10.4.16-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"node-mermaid","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.2.2+~2.0.0-1","9.2.2+~2.0.0-2"]}],"products":[{"vendor":"mermaid_project","product":"mermaid"}],"references":[{"url":"https://github.com/mermaid-js/mermaid/issues/2122","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/mermaid-js/mermaid/pull/2123","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/mermaid-js/mermaid/releases/tag/8.11.0-rc2","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35513","tags":["advisory"]},{"url":"https://github.com/mermaid-js/mermaid/pull/2123/commits/3d22fa5d2435de5acc18de6f88474a6e8675a60e","tags":["web"]},{"url":"https://github.com/advisories/GHSA-4f6x-49g2-99fm"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-35513","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-35513","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-35513","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-35513","description":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","status":"published","published":"2021-06-27T11:03:30Z","modified":"2024-08-04T00:40:47.091Z","updated_at":"2026-11-02T14:33:09.864034Z"}],"euvd":[{"id":"EUVD-2021-2437","description":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","status":"published","published":"2021-06-27T11:03:30Z","modified":"2024-08-04T00:40:47Z","updated_at":"2026-11-03T03:24:30.441845Z"}],"ghsa":[{"id":"GHSA-4f6x-49g2-99fm","title":"Cross-site Scripting in Mermaid","description":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","status":"published","published":"2021-12-10T18:57:41Z","modified":"2023-02-01T05:06:10Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:37.441118Z"}],"nvd":[{"id":"CVE-2021-35513","description":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","status":"published","published":"2021-06-27T12:15:08.1Z","modified":"2026-06-17T03:57:36.537Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:55.259633Z"}],"osv":[{"id":"CVE-2021-35513","description":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","status":"published","published":"2021-06-27T12:15:08.1Z","modified":"2026-10-20T10:54:46.19877658Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"DEBIAN-CVE-2021-35513","description":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","status":"published","published":"2021-06-27T12:15:08.1Z","modified":"2026-10-23T18:03:50.033408342Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"GHSA-4f6x-49g2-99fm","title":"Cross-site Scripting in Mermaid","description":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","status":"published","published":"2021-12-10T18:57:41Z","modified":"2023-11-08T04:06:10.132342Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:36.782754Z"},{"id":"UBUNTU-CVE-2021-35513","description":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","status":"published","published":"2021-06-27T12:15:00Z","modified":"2026-10-17T12:57:14.319633312Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:27.870979Z"}]}}
