# CVE-2023-46035: svg_optimizer rubygem external XML entity (XXE) vulnerability

- Severity: Medium 5.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/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.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2023-10-20T13:23:32.000Z
- Modified: 2026-09-22T20:00:03.713Z
- Also known as: GHSA-6hvg-62q8-95v7
- Weaknesses: CWE-611, CWE-776
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

The svg_optimizer gem before 0.3.0 for Ruby performs entity expansion on untrusted documents.

(As written by CVE List.)

## Affected

- fnando svg_optimizer: before 0.3.0
- svg_optimizer (RubyGems): from 0.2.6 before 0.3.0

## Every score

- mitre: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: rating Medium

## References

- <https://github.com/fnando/svg_optimizer/pull/17> (web)
- <https://github.com/rubysec/ruby-advisory-db/pull/713>
- <https://github.com/fnando/svg_optimizer/commit/8244ff25b51a16892496e9d9f7191dba393f7af0> (web)
- <https://github.com/fnando/svg_optimizer/commit/b1b5013db297494daba5676b9fa4423ffc5e96fa> (web)
- <https://github.com/fnando/svg_optimizer> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/svg_optimizer/CVE-2023-46035.yml> (web)

## Sources

- CVE List: [CVE-2023-46035](https://www.cve.org/CVERecord?id=CVE-2023-46035), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-6hvg-62q8-95v7](https://github.com/advisories/GHSA-6hvg-62q8-95v7), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-46035](https://nvd.nist.gov/vuln/detail/CVE-2023-46035), Public domain, modified 2026-09-22

---

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