CVE-2025-25341 libxmljs has segmentation fault, potentially leading to a denial-of-service (DoS)

High 7.5 Published Updated

Attackers can cause a segmentation fault and denial of service in libxmljs by parsing specially crafted XML documents.

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

What is CVE-2025-25341?

CVE-2025-25341 is a high-severity denial of service vulnerability in n/a, published on 26 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability exists in the libxmljs 1.0.11 when parsing a specially crafted XML document. Accessing the internal _ref property on entity_ref and entity_decl nodes causes a segmentation fault, potentially leading to a denial-of-service (DoS).

Weakness: CWE-400

Which versions are affected by CVE-2025-25341?

2 open source packages ship an affected version, including libxmljs. It affects 1 product.

PackageAffectedFixed in
libxmljs npmAll versions to 1.0.11None
libxmljs npmAll versions to 1.0.11None

Products include Libxmljs Project Libxmljs.

How do I fix CVE-2025-25341?

No fix has been published for CVE-2025-25341 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-25341 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-25341 exists.

Sources

Also known as GHSA-jv72-59wq-8rxm.

Is CVE-2025-25341 in your software?

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

Check your SBOMs for free