Skip to main content

libxmljs CVE-2025-25341

HIGH
Uncontrolled Resource Consumption (CWE-400)
2025-12-26 cve@mitre.org
7.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted XML to libxmljs endpoint
  2. Delivery
    Parser builds entity_ref/entity_decl nodes
  3. Exploit
    Application accesses internal _ref property
  4. Execution
    Invalid memory dereference segfaults process
  5. Impact
    Service denial-of-service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that an application using libxmljs 1.0.11 parse attacker-controlled XML AND then access the internal _ref property on entity_ref or entity_decl nodes of the resulting document - the segmentation fault arises specifically from that property access on those two node types, not merely from parsing. LIMITING FACTORS: the vulnerable code path is only reached if the consuming application traverses or inspects entity reference/declaration nodes, so services that parse but never touch these node types may not be affected; impact is confined to availability (process crash), and the flaw is specific to the 1.0.11 release on the Node.js platform.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) describes a remote, low-complexity, unauthenticated availability-only impact with no confidentiality or integrity effect, consistent with CWE-400 (uncontrolled resource consumption / crash) and the stated denial-of-service outcome. Publicly available exploit code exists (referenced libxmljs GitHub issue #667), which raises practical risk, but this is NOT listed in CISA KEV and no EPSS score was supplied, so there is no evidence of active or widespread exploitation - the signals point to a demonstrable-but-not-actively-weaponized bug. A key caveat against the raw 7.5: the crash is triggered by the application accessing the internal _ref property on entity_ref/entity_decl nodes of a parsed document, so a segfault does not occur on parse alone - it requires the consuming application to traverse those node types, which tempers the 'unauthenticated network' framing. EPSS data is missing, preventing a probabilistic exploitation estimate; treat PR:N as accurate for the attacker-supplied XML but note the application-side node-access precondition.

Exploit ScenarioDerived

An attacker submits a specially crafted XML document to a Node.js service that uses libxmljs 1.0.11 to parse untrusted input, and when the application iterates over or inspects entity_ref/entity_decl nodes (accessing the internal _ref property), the native layer dereferences invalid memory and segfaults, crashing the worker/process. Because low-complexity exploit code is publicly available on the libxmljs issue tracker, reproduction is trivial; repeated submissions yield a sustained denial of service.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 13, 2026

Denial-of-service in libxmljs 1.0.11 (Node.js) allows a remote, unauthenticated attacker to crash a process by supplying a crafted XML document that is then parsed and subsequently inspected for internal entity reference or declaration nodes. Accessing the internal _ref property on entity_ref or entity_decl nodes triggers a segmentation fault, and publicly available exploit code exists via the upstream GitHub issue; there is no KEV status indicating confirmed active exploitation, and the CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) reflects an availability-only impact. Because the crash requires the consuming application to traverse or inspect these specific node types, services that parse XML but never touch those nodes may not be affected.

RemediationAI

No vendor-released patch was identified at time of analysis. Monitor the upstream libxmljs project (GitHub issue 667) for a fixed release and upgrade as soon as a patched version is published. Until then, apply compensating controls: audit application code to ensure it never accesses the internal _ref property on entity_ref or entity_decl node types, and if such access is necessary, add a type check that skips these nodes; configure the XML parser to reject or strip entity references and declarations (for example, set noent to false for parsing and avoid processing DTDs), which removes the node types entirely but may break functionality that legitimately relies on entity resolution; isolate the XML-parsing process in a sandbox or worker thread that can be automatically restarted on crash, accepting that the crash still occurs but limiting its blast radius; and enforce strict XML input size limits and schema validation to reduce the attack surface. None of these fully substitute for an upstream fix.

Affected Packages

npm libxmljs no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libxmljs is a native Node.js binding to the libxml2 C library, and CVE-2025-25341 maps to CWE-400 (uncontrolled resource consumption) in version 1.0.11. The segmentation fault occurs when JavaScript code accesses the internal _ref property of entity_ref and entity_decl node objects: _ref is an internal pointer to the underlying libxml2 node structure, and for these two node types it is likely NULL or invalid, so dereferencing it causes a crash. The CPE cpe:2.3:a:libxmljs_project:libxmljs:1.0.11:*:*:*:*:node.js:*:*: confirms the affected platform is Node.js and the single affected version is 1.0.11. Exploitation is conditional on the application not only parsing attacker-controlled XML but also traversing or inspecting entity reference or declaration nodes, making the vulnerable code path dependent on application behavior rather than parsing alone.

Know when Libxmljs gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Attacker-supplied XML is network-delivered and unauthenticated (AV:N/PR:N); crash is reliable once the entity nodes are accessed (AC:L); impact is crash-only, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

DescriptionCVE.org

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).

Executive ViewAI

Why It Matters

CVE-2025-25341 is a high-severity denial-of-service vulnerability affecting Node.js applications that use libxmljs 1.0.11 to parse and inspect XML. A remote, unauthenticated attacker can crash affected processes with crafted XML, putting availability at risk for customer-facing or business-critical services that depend on this library. Leadership should care because publicly available exploit code exists and no vendor-released patch identified at time of analysis, so mitigation depends on dependency discovery, interim controls, and possible migration rather than routine patching.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include restricting untrusted XML inputs, disabling DTD/entity processing where possible, avoiding traversal or inspection of entity_ref/entity_decl nodes and the internal _ref property, isolating XML parsing in sandboxed worker processes or containers with automatic restart and resource limits, applying WAF/input filtering, monitoring for process crashes, and planning migration to an alternative maintained XML parser.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
popular Node.js XML library, but not universal; app must traverse entity nodes
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:a:libxmljs_project:libxmljs:1.0.11:*:*:*:*:node.js:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy