Prototype Pollution Vulnerability in requirejs Package: Arbitrary Code Execution Risk

requirejs Updated 02 Oct 2025

Summary

01/07/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-38999: jrburke requirejs v2.3.6 was discovered to contain a prototype pollution via the function s.contexts._.configure. Affects requirejs versions < 2.3.7+ds+~2.1.37-1. Fixed in 2.3.7+ds+~2.1.37-1. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The requirejs package is a popular JavaScript file and module loader that helps in managing dependencies in web applications. It allows developers to load scripts asynchronously, improving the performance and organization of code. However, a vulnerability has been identified in version 2.3.6, which can lead to serious security risks.

Vulnerability Detail

The vulnerability arises from a prototype pollution issue in the function s.contexts._.configure of the requirejs package. This flaw allows attackers to inject arbitrary properties into the prototype of objects, potentially leading to arbitrary code execution or Denial of Service (DoS) attacks. The issue was discovered in version 2.3.6, and it is crucial for users to be aware of the risks associated with this vulnerability.

How To Fix

Minimum fixed version

2.3.7+ds+~2.1.37-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade requirejs

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

Workaround

As a temporary workaround, users can avoid using the affected function s.contexts._.configure until the package is updated. Additionally, consider implementing input validation to mitigate the risk of prototype pollution.

Conclusion

The prototype pollution vulnerability in the requirejs package poses significant risks to applications using this library. It is essential to update to the patched version to mitigate these risks and ensure the security of your application.

See every vulnerability recorded for requirejs →

Share this vulnerability

FAQ

Prototype pollution is a security vulnerability that allows an attacker to manipulate the prototype of a base object, potentially leading to unexpected behavior or security breaches.

If exploited, this vulnerability can allow attackers to execute arbitrary code or cause a Denial of Service, compromising the integrity and availability of your application.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your manifest file.

If an immediate update is not possible, implement input validation and avoid using the affected function as a temporary measure to reduce risk.

Related vulnerabilities

Recent vulnerabilities recorded for requirejs.

How To Fix

Minimum fixed version

2.3.7+ds+~2.1.37-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade requirejs

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