CVE-2020-7774: Prototype Pollution in y18n

y18n Updated 02 Oct 2025

Summary

29/03/2021
Yes i
High
7.3

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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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.2 3.2.2
    npm install y18n@3.2.2
  • >= 4.0.0, < 4.0.1 4.0.1
    npm install y18n@4.0.1
  • >= 5.0.0, < 5.0.5 5.0.5
    npm 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 →

Share this vulnerability

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.

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.2 3.2.2
    npm install y18n@3.2.2
  • >= 4.0.0, < 4.0.1 4.0.1
    npm install y18n@4.0.1
  • >= 5.0.0, < 5.0.5 5.0.5
    npm 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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback