CVE-2023-49146
MEDIUM 6.1CVSS 3.1Cross-site Scripting in DOMSanitizer
DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.
- Published
- 22 Nov 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-2ghm-r75j-pjx2
- Sources
- NVDJSONOSV GHSA-2ghm-r75j-pjx2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | getgrav | dom-sanitizercpe:2.3:a:getgrav:dom-sanitizer:*:*:*:*:*:*:*:* |
< 1.0.7 | 1.0.7 |
| OSV | Packagist | rhukster/dom-sanitizer | < 1.0.7 | 1.0.7 |
References
- https://github.com/rhukster/dom-sanitizer/commit/c2a98f27ad742668b254282ccc5581871d0fb601 · Patch, WEB
- https://github.com/rhukster/dom-sanitizer/compare/1.0.6...1.0.7 · Patch, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-49146 · ADVISORY
- https://github.com/rhukster/dom-sanitizer · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 22 Nov 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Nov 2023)