Medium
node-mermaid — security advisory
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
- Products
- node-mermaid
- Affected versions
- 8.13.3+ds+~cs26.13.21-1, 8.13.3+ds+~cs26.13.21-2, 8.13.8+~cs10.4.16-1, 8.7.0+ds+~cs27.17.17-3, 9.2.2+~2.0.0-1, 9.2.2+~2.0.0-2
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23648
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:35 UTC · Revision 1
Source evidence
The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.
osv:UBUNTU-CVE-2021-23648
node-mermaid
Fixed versions: Not specified
node-mermaid
Fixed versions: Not specified
Complete source record
{
"id": "ef28bd8eeb6c3a66d8e1b399def279eeaa3b530a784143c299bbd1514b50f45b",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-23648",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-23648",
"summary": "The package @braintree/sanitize-url before 6.0.0 are vulnerable to Cross-site Scripting (XSS) due to improper sanitization in sanitizeUrl function.",
"evidence": "osv:UBUNTU-CVE-2021-23648",
"products": [
{
"name": {
"value": "node-mermaid",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "8.7.0+ds+~cs27.17.17-3",
"evidence": "/affected/0/versions"
},
{
"value": "8.13.3+ds+~cs26.13.21-1",
"evidence": "/affected/0/versions"
},
{
"value": "8.13.3+ds+~cs26.13.21-2",
"evidence": "/affected/0/versions"
},
{
"value": "8.13.8+~cs10.4.16-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "node-mermaid",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "9.2.2+~2.0.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "9.2.2+~2.0.0-2",
"evidence": "/affected/1/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2021-23648",
"aliases": [
"UBUNTU-CVE-2021-23648"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-mermaid",
"purl": "pkg:deb/ubuntu/node-mermaid?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23648.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-mermaid",
"binary_version": "8.13.8+~cs10.4.16-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-mermaid",
"purl": "pkg:deb/ubuntu/node-mermaid?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"9.2.2+~2.0.0-1",
"9.2.2+~2.0.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23648.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-mermaid",
"binary_version": "9.2.2+~2.0.0-2"
}
]
}
}
],
"modified": "2026-10-17T12:57:11.800873898Z",
"provider": "osv",
"upstream": [
"CVE-2021-23648"
],
"references": [
"https://ubuntu.com/security/CVE-2021-23648",
"https://github.com/braintree/sanitize-url/pull/40",
"https://www.cve.org/CVERecord?id=CVE-2021-23648"
]
},
"related_cves": [
{
"value": "CVE-2021-23648",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 356878,
"published_at": "2022-03-16T16:15:00+00:00"
}