{ "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-43861", "STATE": "PUBLIC", "TITLE": "Incorrect sanitisation function leads to `XSS`" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "mermaid", "version": { "version_data": [ { "version_value": "< 8.13.8" } ] } } ] }, "vendor_name": "mermaid-js" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "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." } ] }, "impact": { "cvss": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 7.2, "baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "HIGH", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "version": "3.1" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')" } ] }, { "description": [ { "lang": "eng", "value": "CWE-20: Improper Input Validation" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v", "refsource": "CONFIRM", "url": "https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v" }, { "name": "https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83", "refsource": "MISC", "url": "https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83" }, { "name": "https://github.com/mermaid-js/mermaid/releases/tag/8.13.8", "refsource": "MISC", "url": "https://github.com/mermaid-js/mermaid/releases/tag/8.13.8" } ] }, "source": { "advisory": "GHSA-p3rp-vmj9-gv6v", "discovery": "UNKNOWN" } }