Out-of-Bounds Affecting libxmljs package, versions >=0.8.0 <1.0.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.94% (76th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-LIBXMLJS-10557414
  • published27 Jun 2025
  • disclosed23 Nov 2017
  • creditUnknown

Introduced: 23 Nov 2017

CVE-2017-16931  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade libxmljs to version 1.0.0 or higher.

Overview

libxmljs is a libxml bindings for v8 javascript engine

Affected versions of this package are vulnerable to Out-of-Bounds parser.c in libxml2 before 2.9.5 mishandles parameter-entity references because the NEXTL macro calls the xmlParserHandlePEReference function in the case of a '%' character in a DTD name.

CVSS Base Scores

version 3.1