CVE-2022-21144
HIGH 7.5CVSS 3.1Denial of service vulnerability exists in libxmljs
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.
- Published
- 1 May 2022
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-773h-w45w-f2f9SNYK-JS-LIBXMLJS-2348756
- Sources
- NVDJSONOSV GHSA-773h-w45w-f2f9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | libxmljs_project | libxmljscpe:2.3:a:libxmljs_project:libxmljs:*:*:*:*:*:node.js:*:* |
< 0.19.8 | 0.19.8 |
| OSV | npm | libxmljs | < 0.19.8 | 0.19.8 |
References
- https://github.com/libxmljs/libxmljs/commit/2501807bde9b38cfaed06d1e140487516d91379d · Patch, Third Party Advisory, WEB
- https://github.com/libxmljs/libxmljs/pull/594 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-LIBXMLJS-2348756 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21144 · ADVISORY
- https://github.com/libxmljs/libxmljs · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 May 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 May 2022)