High
Security advisory
darylldoyle svg-sanitizer before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in the javascript :alert substring.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-18857
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:02 UTC · Revision 1
Source evidence
darylldoyle svg-sanitizer before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in the javascript :alert substring.
osv:CVE-2019-18857
Complete source record
{
"id": "e8513b51841d7b720c2f9db0916fe1ceb6d875268e87d4ca9d396d5dd92ceb9b",
"url": "https://osv.dev/vulnerability/CVE-2019-18857",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-18857",
"summary": "darylldoyle svg-sanitizer before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in the javascript :alert substring.",
"evidence": "osv:CVE-2019-18857",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-18857",
"aliases": [
"CVE-2019-18857",
"GHSA-gf8j-v8x5-h9qp"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/darylldoyle/svg-sanitizer",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "51ca4b713f3706d6b27769c6296bbc0c28a5bbd0"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:svg-sanitizer_project:svg-sanitizer:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.12.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "51ca4b713f3706d6b27769c6296bbc0c28a5bbd0"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"0.10.0",
"0.9.2",
"0.9.1",
"0.9.0",
"0.8.2",
"0.8.1",
"0.8.0",
"0.7.2",
"0.7.1",
"0.7.0",
"0.6.0",
"0.5.3.1",
"0.5.3",
"0.5.2",
"0.5.1",
"0.5.0",
"0.4.1",
"0.4.0",
"0.3.0",
"0.2.1",
"0.2.0",
"0.1.6",
"0.1.5",
"0.1.4",
"0.1.3",
"0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-18857.json"
}
}
],
"modified": "2026-10-20T10:52:30.327176743Z",
"provider": "osv",
"references": [
"https://github.com/darylldoyle/svg-sanitizer/compare/0.11.0...0.12.0",
"https://github.com/darylldoyle/svg-sanitizer/commit/51ca4b713f3706d6b27769c6296bbc0c28a5bbd0"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2019-18857",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 383672,
"published_at": "2019-11-11T15:15:12.53+00:00"
}