Critical Prototype Pollution Vulnerability in Node.js Package y18n

nodejs Updated 02 Oct 2025

Summary

17/11/2020
N/A
Yes i
Critical
9.8

ALPINE-CVE-2020-7774: The package y18n before 3.2.2, 4.0.1 and 5.0.5, is vulnerable to Prototype Pollution. Affects nodejs versions < 10.24.1-r0. Fixed in 10.24.1-r0. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The y18n package is a localization library for Node.js that enables developers to easily translate their applications into different languages. It is widely used in various Node.js applications for its simplicity and effectiveness in handling internationalization. However, the package has been found to be vulnerable to a critical issue that allows for prototype pollution, which can lead to severe security risks.

Vulnerability Detail

The vulnerability identified as CVE-2020-7774 affects versions of the y18n package prior to 3.2.2, 4.0.1, and 5.0.5. This flaw allows attackers to manipulate the prototype of objects, potentially leading to unauthorized access and modification of application data. The ramifications of this vulnerability can be severe, as it may allow attackers to execute arbitrary code, leading to data breaches or service disruptions. The vulnerability arises from improper handling of user input, which can be exploited to alter the behavior of the application.

How To Fix

Minimum fixed version

10.24.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade nodejs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider implementing input validation to sanitize user inputs before processing them. This can help mitigate the risk of prototype pollution. For example, you can use libraries like 'validator' to validate and sanitize inputs.

Conclusion

The y18n package has a critical vulnerability that allows for prototype pollution, posing significant risks to applications that utilize it. It is crucial to update to the latest patched versions to safeguard against potential exploits. Implementing input validation can serve as a temporary workaround while updates are applied.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

Prototype pollution is a security vulnerability that allows an attacker to modify the prototype of a base object, which can lead to unexpected behavior in applications.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software by analyzing your manifest file. Visit Vulert Scanner to check your application without any signup.

Failing to fix this vulnerability can lead to severe security risks, including unauthorized access to sensitive data and potential exploitation of your application.

Yes, you should upgrade to y18n version 3.2.2, 4.0.1, or 5.0.5 or later to mitigate the vulnerability.

The CVSS score of this vulnerability is 9.8, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for nodejs.

How To Fix

Minimum fixed version

10.24.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade nodejs

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