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.0
Every release on a timeline
  1. Affected

    0.20.0 – 0.35.0

    38 releases

  2. Fixed

    0.37.0

    1 release, latest

39 stable releases of libxmljs2, oldest to newest.

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.