CVE-2026-96889 — Vulnerability in librsvg — CVE Details
Librsvg: Use-after-free when XML includes have duplicated entities
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.10%). Schedule for your next planned update.
Does your project use an affected librsvg version?
Paste your Cargo.lock to check it for CVE-2026-96889 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Librsvg uses libxml2, a C library, to parse XML. When librsvg parses an SVG document which has a nested Xinclude, an XML entity declaration with a duplicate name as an existing one can cause a use-after-free error.
While libxml2 is expanding an internal entity, a recursive XInclude
can parse another document that declares an entity with the same
name. Both parses use the same XmlState entity
map on the librsvg side. entity_insert() replaces the first entry, whose Drop
implementation calls xmlFreeNode(). The outer xmlCtxtParseEntity()
then keeps using the freed 144-byte xmlEntity.
The included parse should not free an entity that the outer parser is still using.
The fix is in commit 8a1b0cd319e9af2d1e9cf878081dd77f227a0504, where librsvg will no longer free xmlEntity pointers that libxml2 is still using.
Advisory Timeline
- First published October 22, 2026 (35 days ago).
- Last revised October 22, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p librsvg --precise 2.63.2
cargo update -p librsvg --precise 2.57.5
cargo update -p librsvg --precise 2.62.4
cargo update -p librsvg --precise 2.60.3
cargo update -p librsvg --precise 2.61.5
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: crates.io (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-416Use After FreeMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.8 score means for each attack dimension.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-96889ADVISORY
- https://github.com/GNOME/librsvg/commit/0bc935e675947e185d42005d3ad93d7cf61bcea9WEB
- https://github.com/GNOME/librsvg/commit/1606574427408baca8203ef723281509a229f9e2WEB
- https://github.com/GNOME/librsvg/commit/4d0051a9dbd038a5fe8461b61486677d88f8736dWEB
- https://github.com/GNOME/librsvg/commit/e56cc8a33a7184eef6e8a720414aee6205a400adWEB
- https://rustsec.org/advisories/RUSTSEC-2026-0305.htmlWEB
- https://gitlab.gnome.org/GNOME/librsvg/-/work_items/1241WEB
- https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/1211WEB
- https://gitlab.gnome.org/GNOME/librsvg/-/commit/8a1b0cd319e9af2d1e9cf878081dd77f227a0504WEB
- https://gitlab.gnome.org/GNOME/librsvgPACKAGE
- https://github.com/GNOME/librsvg/releases/tag/2.63.2WEB
- https://github.com/GNOME/librsvg/releases/tag/2.62.4WEB
- https://github.com/GNOME/librsvg/releases/tag/2.61.5WEB
- https://github.com/GNOME/librsvg/releases/tag/2.60.3WEB
- https://github.com/GNOME/librsvg/releases/tag/2.57.5WEB
- https://github.com/GNOME/librsvg/blob/2.63.2/NEWSWEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2539279WEB
- https://access.redhat.com/security/cve/CVE-2026-96889WEB
- https://access.redhat.com/errata/RHSA-2026:86921WEB
- https://access.redhat.com/errata/RHSA-2026:86842WEB
- https://access.redhat.com/errata/RHSA-2026:86841WEB
- https://access.redhat.com/errata/RHSA-2026:86331WEB
Frequently Asked Questions
- What is CVE-2026-96889?
- Librsvg: Use-after-free when XML includes have duplicated entities. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.8/10).
- How do I check if my project is affected by CVE-2026-96889?
- CVE-2026-96889 affects librsvg. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-96889 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 65.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution