原始 OSV JSON
{
"id": "GHSA-p3rp-vmj9-gv6v",
"aliases": [
"CVE-2021-43861"
],
"details": "### Impact\nMalicious diagrams can contain javascript code that can be run at diagram readers machines.\n\n### Patches\nThe users should upgrade to version 8.13.8\n\n### Workarounds\nYou need to upgrade in order to avoid this issue.\n",
"summary": "Incorrect sanitisation function leads to `XSS` in mermaid",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "8.13.8"
}
]
}
],
"package": {
"name": "mermaid",
"ecosystem": "npm"
}
}
],
"modified": "2022-01-06T19:02:22Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
}
],
"published": "2022-01-06T19:45:59Z",
"references": [
{
"url": "https://github.com/mermaid-js/mermaid/security/advisories/GHSA-p3rp-vmj9-gv6v",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-43861",
"type": "ADVISORY"
},
{
"url": "https://github.com/mermaid-js/mermaid/commit/066b7a0d0bda274d94a2f2d21e4323dab5776d83",
"type": "WEB"
},
{
"url": "https://github.com/mermaid-js/mermaid",
"type": "PACKAGE"
},
{
"url": "https://github.com/mermaid-js/mermaid/releases/tag/8.13.8",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-20",
"CWE-79"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-12-30T14:15:00Z",
"github_reviewed_at": "2022-01-06T19:02:22Z"
}
}