Packages / libxmljs2 / Security
libxmljs2 type confusion vulnerability when parsing specially crafted XML
Affected releases · libxmljs2
- 0.33.x and older0.20.0 – 0.33.0No fix, no longer updated
0.33.x has no fix yet; the newest fixed line:
npm install libxmljs2@0.37.0Every release on a timeline
Affected
0.20.0 – 0.33.0
37 releases
Fixed
0.35.0 – 0.37.0
2 releases, latest
What happens
libxmljs2 is vulnerable to type confusion when parsing a specially crafted XML while invoking a function on the result of attrs() that was called on a parsed node. This vulnerability might lead to denial of service (on both 32-bit systems and 64-bit systems), data leak, infinite loop and remote code execution (on 32-bit systems with the XML_PARSE_HUGE flag enabled). At the time of publication, there is no fix.
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.