Unrated
Security advisory
DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-49146
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 07:11 UTC · Revision 1
Source evidence
DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.
osv:CVE-2023-49146
Complete source record
{
"id": "f3bb05fb6b3af31b6e0a2809745df7b5df81415c56fa9674eecfe8036ab053ca",
"url": "https://osv.dev/vulnerability/CVE-2023-49146",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2023-49146",
"summary": "DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.",
"evidence": "osv:CVE-2023-49146",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2023-49146",
"aliases": [
"CVE-2023-49146",
"GHSA-2ghm-r75j-pjx2"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/rhukster/dom-sanitizer",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "c2a98f27ad742668b254282ccc5581871d0fb601"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.0.7"
}
],
"source": "DESCRIPTION"
},
{
"range": [
{
"fixed": "c2a98f27ad742668b254282ccc5581871d0fb601"
}
],
"source": "REFERENCES_COMMIT"
},
{
"cpe": "cpe:2.3:a:getgrav:dom-sanitizer:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.0.7"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"1.0.6",
"1.0.5",
"1.0.4",
"1.0.3",
"1.0.2",
"1.0.1",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-49146.json"
}
}
],
"modified": "2026-10-28T02:30:26.859334249Z",
"provider": "osv",
"references": [
"https://github.com/rhukster/dom-sanitizer/compare/1.0.6...1.0.7",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49146.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-49146",
"https://github.com/rhukster/dom-sanitizer/commit/c2a98f27ad742668b254282ccc5581871d0fb601"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49146.json"
}
},
"related_cves": [
{
"value": "CVE-2023-49146",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 493303,
"published_at": "2023-11-22T00:00:00+00:00"
}