y18n
Affected
- introduced
0, fixed3.2.2(semver)
Fixed versions
3.2.2
Fix
- Fixed version
3.2.2npm install [email protected]
Advisory
Also known as: CVE-2020-7774
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
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.
High Basis: The source's own band: HIGH
0, fixed 3.2.2 (semver)3.2.2
3.2.2npm install [email protected]4.0.0, fixed 4.0.1 (semver)4.0.1
4.0.1npm install [email protected]5.0.0, fixed 5.0.5 (semver)5.0.5
5.0.5npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0