npm package
xml2js 0.2.1 vulnerability, and the version that fixes it
xml2js 0.2.1 has 1 known vulnerability; 0.5.0 fixes it.
npm (opens in a new tab) describes it as “Simple XML to JavaScript object converter.”
- Known vulnerabilities
- 1
- None rated high or critical
- Released
- Nov 13, 2012
- Latest is 0.6.2
- Downloads last week
- 15
- Under 1% of xml2js downloads
- Licence
- MIT
- Pulls in
- 1 package
- Resolved by deps.dev
What to upgrade to
0.5.0 is the closest release with no known vulnerabilities.
Newest 0.2.x release. Released Jun 15, 2013.
1 known vulnerability, worst rated warning0.5.0Upgrade to this
Fixes the known vulnerability. Released Apr 9, 2023.
No known vulnerabilitiesLatest release. Released Jul 26, 2023.
No known vulnerabilities
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- WarningVulnerability
CVE-2023-0842 in xml2js 0.2.1
EPSS: top 28%xml2js is vulnerable to prototype pollution. Fixed in 0.5.0.
- LowOutdated
xml2js 0.2.1 is a minor version behind
Latest release is 0.6.2.
- LowOpenSSF Scorecard
leonidas-from-xiv/node-xml2js scores 3.3/10 on OpenSSF Scorecard
Weakest checks: Not actively maintained (Maintained 0/10); No branch protection (Branch-Protection 0/10); No security policy (Security-Policy 0/10). A low score means weaker upstream security practices, not a known vulnerability.
Every advisory for xml2js 0.2.1
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
WarningCVE-2023-0842 on OSV.dev (opens in a new tab)GHSA-776f-qx25-q3ccEPSS: top 28%
xml2js is vulnerable to prototype pollution
Fixed in 0.5.0. Published Apr 5, 2023.
Who is still on a vulnerable xml2js
12% of last week’s 45.2M xml2js downloads went to versions with known vulnerabilities.
From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.
Is xml2js the only one?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly xml2js 0.2.1, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.