libxmljs
CVE-2025-25341
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted XML to libxmljs endpoint
-
DeliveryParser builds entity_ref/entity_decl nodes
-
ExploitApplication accesses internal _ref property
-
ExecutionInvalid memory dereference segfaults process
-
ImpactService 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)CVE.org
libxmljs is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking the namespa
libxmljs is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking a function
This affects all versions of package libxmljs. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitabl
NVD
CVE.org
EPSS
GitHub
Exploit-DB