Packages / libxmljs2 / Security
CriticalVulnerabilityGHSA-78h3-pg4x-j8cvCVE-2024-34394Published 2 May 2024
libxmljs2 vulnerable to type confusion when parsing specially crafted XML
Your version
Affected releases · libxmljs2
- 0.35.x and older0.20.0 – 0.35.0No fix, no longer updated
0.35.x has no fix yet; the newest fixed line:
npm install libxmljs2@0.37.0Every release on a timeline
Affected
0.20.0 – 0.35.0
38 releases
Fixed
0.37.0
1 release, latest
What happens
libxmljs2 is vulnerable to a type confusion vulnerability when parsing a specially crafted XML while invoking the namespaces() function (which invokes XmlNode::get_local_namespaces()) on a grand-child of a node that refers to an entity. This vulnerability can lead to denial of service and remote code execution.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.