{"id":"CVE-2023-49146","aliases":["CVE-2023-49146","GHSA-2ghm-r75j-pjx2"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting in DOMSanitizer","summary":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.","source":"cvelist"},{"lang":"es","text":"DOMSanitizer (también conocido como dom-sanitizer) anterior a 1.0.7 permite XSS a través de un documento SVG debido al mal manejo de comentarios y expresiones regulares codiciosas.","source":"nvd"}],"published":"2023-11-22T00:00:00.000Z","modified":"2026-06-17T06:35:28.090Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.7"}],"ecosystem":"Packagist","package":"rhukster/dom-sanitizer","purl":"pkg:composer/rhukster/dom-sanitizer","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.7"}],"vendor":"getgrav","product":"dom-sanitizer","cpe":"cpe:2.3:a:getgrav:dom-sanitizer:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rhukster/dom-sanitizer/commit/c2a98f27ad742668b254282ccc5581871d0fb601","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rhukster/dom-sanitizer/compare/1.0.6...1.0.7","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49146","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rhukster/dom-sanitizer","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-49146","url":"https://www.cve.org/CVERecord?id=CVE-2023-49146","licence":"CVE Terms of Use","modified":"2024-08-02T21:46:29.180Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2ghm-r75j-pjx2","url":"https://github.com/advisories/GHSA-2ghm-r75j-pjx2","licence":"CC-BY-4.0","modified":"2024-02-16T08:04:08.217Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-49146","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49146","licence":"Public domain","modified":"2026-06-17T06:35:28.090Z"}],"updatedAt":"2026-11-25T22:58:30.687Z","epss":{"score":0.00506,"percentile":0.44776,"date":"2026-12-01T12:00:22.000Z"}}