CVE-2022-21144 json
Denial of Service (DoS)
published 2022-05-01 4 y ago modified 2026-07-08 4 mo ago also GHSA-773h-w45w-f2f9 , EUVD-2022-2933
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm libxmljs 0.19.8
- libxmljs_project libxmljs 0.19.8
- github.com/libxmljs/libxmljs@2501807 commit
- github.com/libxmljs/libxmljs#594 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-21144 updated cvss 7.5
libxmljs: libxmljs V8 parseXml buffer overflow
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.92% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-LIBXMLJS-2348756 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | libxmljs | <0.19.8 |
0.19.8 |
Affected products
- n/a libxmljs
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/libxmljs/libxmljs/pull/594
web, patch, third-party-advisory
-
github.com
/libxmljs/libxmljs/commit/2501807bde9b38cfaed06d1e140487516d91379d
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-LIBXMLJS-2348756
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21144
advisory
-
github.com
/libxmljs/libxmljs
package
Sources
- CVE List CVE-2022-21144
- GitHub Advisory GHSA-773h-w45w-f2f9
- NVD CVE-2022-21144
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.