# CVE-2026-96889: librsvg use-after-free in XML entity parsing

Source: https://junglewise.ai/threats/cve-2026-96889-a-flaw-was-found-in-librsvg-when-processing-an-svg-document  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-23. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-96889 · Severity: high · CVSS 7.8 · Published 2026-09-23

librsvg is a graphics library used to render SVG images in applications like web browsers and document viewers. When processing a malicious SVG file with nested XML inclusions and duplicate entity declarations, the library incorrectly frees memory that is still in use, leading to a crash or potentially arbitrary code execution. An attacker could exploit this by convincing a user to open a crafted SVG file.

Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io), [Gnome](https://junglewise.ai/threats/vendors/gnome).

## Quick answers

**Is CVE-2026-96889 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-96889 being exploited in the wild.

**How severe is CVE-2026-96889?** High severity, with a CVSS score of 7.8, published 23 September 2026.

**Which products and versions are affected?** librsvg (crates.io) < 2.57.5, SEMVER:introduced=0,fixed=2.57.5, SEMVER:introduced=0.0.0-0,fixed=2.62.4,introduced=2.62.90,fixed=2.63.2; Gnome Librsvg before 2.63.1.

**Is there a fix for CVE-2026-96889?** Yes. librsvg (crates.io): upgrade to 2.57.5, 2.63.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-96889 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-96889?** Check whether you run librsvg (crates.io) or Gnome Librsvg at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- librsvg (crates.io): upgrade to 2.57.5, 2.63.2 or later

  ```sh
  cargo update -p librsvg
  ```


## Technical details

A use-after-free vulnerability (CWE-416) occurs in librsvg's XML entity handling when processing SVG documents with nested Xincludes containing duplicate entity declarations. The parser incorrectly frees an XML entity object while the parser still holds references to it. The vulnerability requires user interaction (opening a malicious SVG file) and local attack vector; it is fixed in upstream version 2.63.1.

## Affected products

- GNOME librsvg before 2.63.1

## Identifiers

- CVE-2026-96889
- GHSA-cpvr-w4j5-2mpg
- RUSTSEC-2026-0305

## Timeline

- 2026-09-23: disclosed
- 2026: patched: Fixed upstream in version 2.63.1

## References

- [https://access.redhat.com/downloads/content/package-browser/](https://access.redhat.com/downloads/content/package-browser/)
- [https://access.redhat.com/security/cve/CVE-2026-96889](https://access.redhat.com/security/cve/CVE-2026-96889)

## Related threats

- [sharp memory corruption in librsvg dependency](https://junglewise.ai/threats/sharp-vulnerability-in-librsvg-dependency-b5d03f31)
- [librsvg DoS via Cyclic References](https://junglewise.ai/threats/cve-2015-7558-librsvg-dos-via-cyclic-references)
