{"id":"GHSA-4f6x-49g2-99fm","summary":"Cross-site Scripting in Mermaid","details":"Mermaid before 8.11.0 allows XSS when the antiscript feature is used.","aliases":["CVE-2021-35513"],"modified":"2023-11-01T04:55:41.692078Z","published":"2021-12-10T18:57:41Z","database_specific":{"nvd_published_at":"2021-06-27T12:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-06-28T18:34:26Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35513"},{"type":"WEB","url":"https://github.com/mermaid-js/mermaid/issues/2122"},{"type":"WEB","url":"https://github.com/mermaid-js/mermaid/pull/2123"},{"type":"WEB","url":"https://github.com/mermaid-js/mermaid/pull/2123/commits/3d22fa5d2435de5acc18de6f88474a6e8675a60e"},{"type":"WEB","url":"https://github.com/mermaid-js/mermaid/releases/tag/8.11.0-rc2"}],"affected":[{"package":{"name":"mermaid","ecosystem":"npm","purl":"pkg:npm/mermaid"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.11.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-4f6x-49g2-99fm/GHSA-4f6x-49g2-99fm.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}