Is xml2js 0.2 vulnerable?
npm · 9 releases from 0.2.0 to 0.2.8 · latest xml2js is 0.6.2 · checked 2 Nov 2026
Yes: 1 known advisory
Yes. xml2js 0.2.8, the last 0.2 release, is affected by 1 known security advisory (1 medium), including CVE-2023-0842. Upgrade to 0.5.0 or later to fix all of them.
Upgrade with:
npm install xml2js@0.5.0Advisories affecting xml2js 0.2.8
xml2js is vulnerable to prototype pollution
- Affected
- <0.5.0
- Fixed in
- 0.5.0
Which of your client projects are still on xml2js 0.2?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact xml2js version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other xml2js versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.