# CVE-2022-23638: Cross-site Scripting in svg-sanitizer

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.68%, higher than 53% of CVEs (2026-12-01)
- Published: 2022-02-14T21:10:10.000Z
- Modified: 2026-06-17T04:30:32.300Z
- Also known as: GHSA-fqx8-v33p-4qcc
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

svg-sanitizer is a SVG/XML sanitizer written in PHP. A cross-site scripting vulnerability impacts all users of the `svg-sanitizer` library prior to version 0.15.0. This issue is fixed in version 0.15.0. There is currently no workaround available.

(As written by CVE List.)

## Affected

- darylldoyle svg-sanitizer: < 0.15.0
- enshrined/svg-sanitize (Packagist): before 0.15.0
- svg-sanitizer_project svg-sanitizer: before 0.15.0

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-fqx8-v33p-4qcc> (third-party-advisory, web)
- <https://github.com/darylldoyle/svg-sanitizer/commit/17e12ba9c2881caa6b167d0fbea555c11207fbb0> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23638> (advisory)
- <https://github.com/darylldoyle/svg-sanitizer/issues/71> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/enshrined/svg-sanitize/CVE-2022-23638.yaml> (web)
- <https://github.com/advisories/GHSA-fqx8-v33p-4qcc> (advisory)
- <https://github.com/darylldoyle/svg-sanitizer> (package)

## Sources

- CVE List: [CVE-2022-23638](https://www.cve.org/CVERecord?id=CVE-2022-23638), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-fqx8-v33p-4qcc](https://github.com/advisories/GHSA-fqx8-v33p-4qcc), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-23638](https://nvd.nist.gov/vuln/detail/CVE-2022-23638), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23638 · Whole record: https://cve.day/CVE-2022-23638.json · Rebuilt by cve.day 2026-11-25T22:58:09.683Z
