Denial of service vulnerability exists in libxmljs
Date: 2022-05
Affected: npm/libxmljs
Attack vector: dos
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2022-21144
CWE: CWE-20
CVSS: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)

libxmljs provides libxml bindings for v8 javascript engine. This affects all versions of package libxmljs. When invoking the libxmljs.parseXml function with a non-buffer argument the V8 code will attempt invoking the .toString method of the argument. If the argument's toString value is not a Function object V8 will crash.


Mitigations:

Architectural layers (MAESTRO):