# Prototype Pollution in y18n

Advisory record · `GHSA-c4w7-xm78-47vh`

- **Identifiers:** `GHSA-c4w7-xm78-47vh` · `CVE-2020-7774`
- **State:** Confirmed
- **Severity:** CVSS 7.3 High
- **Critical:** Yes: CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-20](https://cwe.mitre.org/data/definitions/20.html) · [CWE-915](https://cwe.mitre.org/data/definitions/915.html) · [CWE-1321](https://cwe.mitre.org/data/definitions/1321.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md) · [Prototype pollution](https://agentprime.io/advisories/tag/prototype-pollution.md) · [CWE-20](https://agentprime.io/advisories/tag/cwe-20.md)
- **Published:** 29 Mar 2021
- **Updated:** 5 Dec 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 29 Mar 2021, 16:05 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 7.3 (7.0 or more) and EPSS 0.70 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `y18n` (npm): affected `<3.2.2 || >=4.0.0, <4.0.1 || >=5.0.0, <5.0.5`; fixed in `3.2.2`, `4.0.1`, `5.0.5`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.3 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P`, from CNA (snyk)

- **CISA KEV:** Not listed.
- **EPSS:** 0.70, the 99th percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 29 Mar 2021. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-c4w7-xm78-47vh](https://github.com/advisories/GHSA-c4w7-xm78-47vh)
- [OSV: GHSA-c4w7-xm78-47vh](https://osv.dev/vulnerability/GHSA-c4w7-xm78-47vh)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7774>
- <https://github.com/yargs/y18n/issues/96>
- <https://github.com/yargs/y18n/pull/108>
- <https://github.com/yargs/y18n/commit/90401eea9062ad498f4f792e3fff8008c4c193a3>
- <https://github.com/yargs/y18n/commit/a9ac604abf756dec9687be3843e2c93bfe581f25>
- <https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf>
- <https://github.com/yargs/y18n>
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038306>
- <https://snyk.io/vuln/SNYK-JS-Y18N-1021887>
- <https://www.oracle.com/security-alerts/cpuApr2021.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-c4w7-xm78-47vh>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-c4w7-xm78-47vh/>. Everything for agents: <https://agentprime.io/llms.txt>.
