CVE-2022-21144Libxmljs Project Libxmljs
High 7.5 No auth needed
Follow: this CVE · Libxmljs Project · Libxmljs Project Libxmljs We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.8% probability of exploitation in 30 days · percentile 78
- Auth required
- No
- Published
- May 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Libxmljs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | libxmljs |
< 0.19.8 |
0.19.8 |
npm install libxmljs@0.19.8 |
Per OSV / GitHub Advisories (GHSA-773h-w45w-f2f9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libxmljs_project | libxmljs | < 0.19.8 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- snyk.io Exploit Third Party Advisory