CVE-2020-7774: Prototype Pollution in y18n
Summary
CVE-2020-7774: Prototype Pollution in y18n. Affects y18n across 3 version ranges.
< 3.2.2
>= 4.0.0, < 4.0.1
>= 5.0.0, < 5.0.5
Fixed in 3.2.2, 4.0.1 or 5.0.5, depending on the release line you run. How to fix ↓
Also tracked for
- nodejs · Alpine:v3.10
The same CVE-2020-7774 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The y18n package is an npm package used for internationalization (i18n) in Node.js applications. It provides a simple API for managing translations. However, versions before 3.2.2, 4.0.1, and 5.0.5 of y18n are vulnerable to Prototype Pollution.
Vulnerability Detail
Prototype Pollution is a vulnerability that occurs when an attacker can modify the prototype of an object, leading to unexpected behavior in the application. In the case of y18n, an attacker can exploit this vulnerability to modify the locale object and inject arbitrary properties or modify existing ones. This can potentially lead to security issues or unexpected behavior in the application.
How To Fix
Latest published version: 5.0.8 as of 22 Oct 2026
npm install y18n@5.0.8
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
< 3.2.23.2.2npm install y18n@3.2.2 -
>= 4.0.0, < 4.0.14.0.1npm install y18n@4.0.1 -
>= 5.0.0, < 5.0.55.0.5npm install y18n@5.0.5
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to upgrade to the latest patched version of the y18n package.
Conclusion
The y18n package is vulnerable to Prototype Pollution, which can lead to security issues and unexpected behavior in the application. It is crucial to upgrade to the latest patched version of the package to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for y18n →
FAQ
Prototype Pollution is a vulnerability that allows an attacker to modify the prototype of an object, leading to unexpected behavior in the application.
y18n is an npm package used for internationalization (i18n) in Node.js applications. It provides a simple API for managing translations.
An attacker can exploit this vulnerability by modifying the locale object in y18n and injecting arbitrary properties or modifying existing ones.
The potential consequences of this vulnerability include security issues and unexpected behavior in the application.
To fix this vulnerability, it is recommended to upgrade to version 3.2.2, 4.0.1, 5.0.5, or later of the y18n package.