First published: Sun Oct 25 2020(Updated: )
### 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.
Credit: report@snyk.io report@snyk.io
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/rh-nodejs12-nodejs | <0:12.19.1-2.el7 | 0:12.19.1-2.el7 |
redhat/rh-nodejs14-nodejs | <0:14.15.4-2.el7 | 0:14.15.4-2.el7 |
redhat/rh-nodejs10-nodejs | <0:10.23.1-2.el7 | 0:10.23.1-2.el7 |
<3.2.2 | ||
>=5.0.0<5.0.5 | ||
=4.0.0 | ||
Oracle GraalVM | =19.3.5 | |
Oracle GraalVM | =20.3.1.2 | |
Oracle GraalVM | =21.0.0.2 | |
Siemens Sinec Infrastructure Network Services | <1.0.1.1 | |
npm/y18n | >=5.0.0<5.0.5 | 5.0.5 |
npm/y18n | =4.0.0 | 4.0.1 |
npm/y18n | <3.2.2 | 3.2.2 |
Y18n Project Y18n | <3.2.2 | |
Y18n Project Y18n | >=5.0.0<5.0.5 | |
Y18n Project Y18n | =4.0.0 | |
redhat/nodejs-y18n | <5.0.5 | 5.0.5 |
redhat/nodejs-y18n | <4.0.1 | 4.0.1 |
IBM Cloud Pak for Security (CP4S) | <=1.6.0.1 | |
IBM Cloud Pak for Security (CP4S) | <=1.6.0.0 | |
IBM Cloud Pak for Security (CP4S) | <=1.5.0.1 | |
IBM Cloud Pak for Security (CP4S) | <=1.5.0.0 | |
IBM Cloud Pak for Security (CP4S) | <=1.4.0.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2020-7774 is a vulnerability in the npm package y18n that allows for Prototype Pollution.
The severity of CVE-2020-7774 is critical, with a severity value of 9.8.
To fix CVE-2020-7774, you should upgrade to version 5.0.5 of the y18n package.
Prototype Pollution is a vulnerability that allows an attacker to modify the behavior of objects by polluting their prototype.
You can find more information about CVE-2020-7774 on the NIST National Vulnerability Database website.