
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-25341 is a denial-of-service vulnerability in the libxmljs Node.js XML parsing library, specifically version 1.0.11. When parsing a specially crafted XML document, accessing the internal _ref property on entity_ref and entity_decl nodes triggers a segmentation fault, crashing the application. The vulnerability was originally reported on January 9, 2025, and publicly disclosed on December 26, 2025. It carries a CVSS v3.1 base score of 7.5 (High), assessed by CISA-ADP (Github Advisory, GitHub Issue).
The root cause is classified as CWE-400 (Uncontrolled Resource Consumption), stemming from improper handling of internal node properties during XML parsing. When libxmljs parses XML containing entity declarations and references, the resulting entity_ref and entity_decl node objects expose an internal _ref property; accessing this property — even indirectly via console.log() or Object.getOwnPropertyNames() — causes a segmentation fault in the underlying native C++ binding. This is similar to previously reported issues with the attr() (#645) and namespaces() (#646) methods, but is distinct in that it is triggered through direct property access rather than method calls, and affects both entity node types. No authentication or special privileges are required; any code path that parses attacker-controlled XML and subsequently inspects node properties is vulnerable (GitHub Issue, Github Advisory).
Successful exploitation causes an immediate application crash (segmentation fault), resulting in a complete denial of service for any Node.js application relying on libxmljs for XML parsing. There is no confidentiality or integrity impact confirmed at this time; however, the original reporter noted potential for data leakage if further memory corruption is achievable beyond the segfault. Applications that accept XML input from untrusted sources — such as web APIs, file upload processors, or document parsers — are at highest risk of service disruption (GitHub Issue, Github Advisory).
A proof-of-concept (PoC) exploit is publicly available in the GitHub issue tracker, demonstrating the crash with a minimal XML document and a few lines of Node.js code (GitHub Issue). There is no evidence of in-the-wild exploitation at this time, and no threat actor attribution has been reported. The EPSS score is approximately 0.017–0.032%, indicating a low near-term exploitation probability. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Github Advisory).
<!DOCTYPE foo [<!ENTITY writer "Bob">]>
<foo><from>&writer;</from></foo>_ref property on the resulting entity_ref or entity_decl node (e.g., via console.log(node) or property enumeration), a segmentation fault is triggered.Segmentation fault (core dumped) in application or system logs; unexpected process restarts logged by process managers (e.g., PM2, systemd).<!DOCTYPE / <!ENTITY) targeting XML-parsing endpoints, especially from a single source IP.core, core.<pid>) generated in the application working directory following crashes.The GitHub Advisory Database notes that all versions up to and including 1.0.11 are affected, with no patched version currently listed in the advisory (Github Advisory). Feedly patch details indicate a patch was added on December 26, 2025 — users should check the libxmljs repository for any releases beyond 1.0.11 and upgrade immediately if available. As interim mitigations: validate and sanitize all XML input before passing it to libxmljs; avoid exposing XML parsing functionality directly to untrusted input; implement rate limiting on XML-parsing endpoints; and consider replacing libxmljs with an actively maintained alternative if no patch is available. Monitor for unexpected application crashes as a potential indicator of exploitation attempts.
The vulnerability received brief coverage from security news aggregators including TheHackerWire on Mastodon and Bluesky shortly after disclosure. Red Hat acknowledged the CVE in their security advisory tracker. No significant vendor statements or notable researcher commentary beyond the original GitHub issue report have been identified (Github Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."