# CVE-2023-49146: Cross-site Scripting in DOMSanitizer

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2023-11-22T00:00:00.000Z
- Modified: 2026-06-17T06:35:28.090Z
- Also known as: GHSA-2ghm-r75j-pjx2
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

DOMSanitizer (aka dom-sanitizer) before 1.0.7 allows XSS via an SVG document because of mishandling of comments and greedy regular expressions.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rhukster/dom-sanitizer (Packagist): before 1.0.7
- getgrav dom-sanitizer: before 1.0.7

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## 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)

## Sources

- CVE List: [CVE-2023-49146](https://www.cve.org/CVERecord?id=CVE-2023-49146), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-2ghm-r75j-pjx2](https://github.com/advisories/GHSA-2ghm-r75j-pjx2), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-49146](https://nvd.nist.gov/vuln/detail/CVE-2023-49146), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-49146 · Whole record: https://cve.day/CVE-2023-49146.json · Rebuilt by cve.day 2026-11-25T22:58:30.687Z
