npm package
json5 2.1.0 vulnerability, and the version that fixes it
json5 2.1.0 has 1 known vulnerability (1 rated high or critical); 2.2.2 fixes it.
npm (opens in a new tab) describes it as “JSON for Humans”
- Known vulnerabilities
- 1
- 1 rated high or critical
- Released
- Sep 28, 2018
- Latest is 2.2.3
- Downloads last week
- 368.4K
- Under 1% of json5 downloads
- Licence
- MIT
- Pulls in
- 1 package
- Resolved by deps.dev
What to upgrade to
2.2.2 is the closest release with no known vulnerabilities.
2.2.2Upgrade to this
Fixes the known vulnerability. Released Dec 16, 2022.
No known vulnerabilitiesNewest 2.x release and the latest release. Released Dec 31, 2022.
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
- CriticalVulnerability
CVE-2022-46175 in json5 2.1.0
EPSS: top 5%Prototype Pollution in JSON5 via Parse Method. Fixed in 2.2.2.
- LowOutdated
json5 2.1.0 is a minor version behind
Latest release is 2.2.3.
- LowOpenSSF Scorecard
json5/json5 scores 3.8/10 on OpenSSF Scorecard
Weakest checks: Not actively maintained (Maintained 0/10); No static analysis (SAST 0/10); No fuzzing (Fuzzing 0/10). A low score means weaker upstream security practices, not a known vulnerability.
Every advisory for json5 2.1.0
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.
CriticalCVE-2022-46175 on OSV.dev (opens in a new tab)GHSA-9c47-m6qq-7p4hEPSS: top 5%
Prototype Pollution in JSON5 via Parse Method
Fixed in 2.2.2. Published Dec 29, 2022.
Who is still on a vulnerable json5
5% of last week’s 240.4M json5 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 json5 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 json5 2.1.0, 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.