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

Medium 5.9 Published Updated

Attackers can cause denial of service or read sensitive data via entity expansion in untrusted SVG documents using the svg_optimizer Ruby gem.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-46035?

CVE-2023-46035 is a medium-severity vulnerability in fnando svg_optimizer, published on 14 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-776

Which versions are affected by CVE-2023-46035?

2 open source packages ship an affected version, including svg_optimizer.

PackageAffectedFixed in
svg_optimizer RubyGemsFrom 0.2.60.3.0
svg_optimizer RubyGemsFrom 0.2.60.3.0

How do I fix CVE-2023-46035?

Upgrade svg_optimizer to 0.3.0 or later.

Is CVE-2023-46035 being exploited?

There is no known exploitation of CVE-2023-46035 in the wild and no public exploit code.

Sources

Also known as GHSA-6hvg-62q8-95v7.

Is CVE-2023-46035 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free