CVE-2020-7774: Prototype Pollution in y18n

y18n Updated 02 Oct 2025

Summary

29/03/2021
Yes i
High
7.3

Your scan reports y18n 4.0.0. Fixed in 4.0.1.

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 4.0.1. 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.

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 version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.0.1

This is the first release that contains the fix.

npm install y18n@4.0.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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 version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.0.1

This is the first release that contains the fix.

npm install y18n@4.0.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.