Skip to main content

CVE-2026-96889 — Vulnerability in librsvg — CVE Details

HIGH

Librsvg: Use-after-free when XML includes have duplicated entities

Published October 22, 2026Updated October 22, 2026Source: OSV

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.

Check my Cargo.lock

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 librsvg to 2.63.2 or later
cargo update -p librsvg --precise 2.63.2
Cargo
Update librsvg to 2.57.5 or later
cargo update -p librsvg --precise 2.57.5
Cargo
Update librsvg to 2.62.4 or later
cargo update -p librsvg --precise 2.62.4
Cargo
Update librsvg to 2.60.3 or later
cargo update -p librsvg --precise 2.60.3
Cargo
Update librsvg to 2.61.5 or later
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).

PackageFixed In
librsvg crates.io · Affected: All versions2.63.2
librsvg crates.io · Affected: All versions2.57.5
librsvg crates.io · Affected: All versions2.62.4
librsvg crates.io · Affected: All versions2.60.3
librsvg crates.io · Affected: All versions2.61.5

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.8 score means for each attack dimension.

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

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

CVSS Score
7.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.10%
EPSS percentile: 65.1

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

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

Related CVEs

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock