CVE-2022-21144:
Denial of service vulnerability exists in libxmljs
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.6128%
CWE
Published
5/3/2022
Updated
8/17/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
libxmljs | npm | < 0.19.8 | 0.19.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the XML/HTML parsing functions' failure to validate()
input types. The GitHub patch shows these functions were modified to add explicit checks for string/buffer inputs, and the CVE description explicitly mentions parseXml
as the vulnerable entry point. The pre-patch code paths for both FromHtml
and FromXml
in xml_document.cc
contained the unsafe input handling logic that led to the crash scenario.