{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-43861","published":"2021-12-30T14:15:07.547000Z","last_modified":"2026-06-17T04:11:35.683000Z","status":"Modified","cvss":{"version":"3.1","score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-20","CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:*","part":"a","vendor":"mermaid_project","product":"mermaid","version_end_excluding":"8.13.8"}],"cpes_truncated":false,"vendors":["mermaid_project"],"products":["mermaid_project/mermaid"],"epss":{"score":0.00938,"percentile":0.5929,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-p3rp-vmj9-gv6v","ecosystem":"npm","name":"mermaid","purl":"pkg:npm/mermaid","ranges":[{"introduced":"0","fixed":"8.13.8"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":32,"links":{"html_es":"/es/cve/CVE-2021-43861/","html_en":"/en/cve/CVE-2021-43861/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-43861","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-43861"},"untrusted":{"vendor_name":"Mermaid Project","product_name":"Mermaid","desc_en":"Mermaid is a Javascript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. Prior to version 8.13.8, malicious diagrams can run javascript code at diagram readers' machines. Users should upgrade to version 8.13.8 to receive a patch. There are no known workarounds aside from upgrading.","affected":[{"untrusted_vendor":"mermaid-js","untrusted_product":"mermaid","versions":[]}],"references":[{"url":"https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/mermaid-js/mermaid/releases/tag/8.13.8","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v","tags":["Third Party Advisory"]}]}}