CVE-2020-7774 – y18n
Package
Manager: npm
Name: y18n
Vulnerable Version: >=0 <3.2.2 || =4.0.0 || >=4.0.0 <4.0.1 || >=5.0.0 <5.0.5
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00676 pctl0.70586
Details
Prototype Pollution in y18n ### Overview The npm package `y18n` before versions 3.2.2, 4.0.1, and 5.0.5 is vulnerable to Prototype Pollution. ### POC ```js const y18n = require('y18n')(); y18n.setLocale('__proto__'); y18n.updateLocale({polluted: true}); console.log(polluted); // true ``` ### Recommendation Upgrade to version 3.2.2, 4.0.1, 5.0.5 or later.
Metadata
Created: 2021-03-29T16:05:12Z
Modified: 2023-09-07T20:22:08Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-c4w7-xm78-47vh/GHSA-c4w7-xm78-47vh.json
CWE IDs: ["CWE-1321", "CWE-20", "CWE-915"]
Alternative ID: GHSA-c4w7-xm78-47vh
Finding: F390
Auto approve: 1