RequireJS < 2.3.7 Prototype Pollution

critical Web App Scanning Plugin ID 115273

Synopsis

RequireJS < 2.3.7 Prototype Pollution

Description

According to its self-reported version number, RequireJS is prior to 2.3.7. It is, therefore, affected by a prototype pollution vulnerability in the s.contexts._.configure function. An attacker can inject arbitrary properties through a crafted configuration object containing a __proto__ property, which may lead to denial of service, remote code execution, or cross-site scripting depending on the available gadgets. (CVE-2024-38999)

Note that the scanner has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to RequireJS version 2.3.7 or later.

See Also

https://github.com/advisories/GHSA-x3m3-4wpv-5vgc

https://github.com/requirejs/requirejs/issues/1854

https://github.com/requirejs/requirejs/pull/1856/commits/ebd7a2ff71473542fa132d0d15c10fb4ed1539e1

Plugin Details

Severity: Critical

ID: 115273

Type: Version Based

Published: 7/3/2026

Updated: 7/3/2026

Scan Template: basic, full, pci, scan

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-38999

CVSS v3

Risk Factor: Critical

Base Score: 10

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

CVSS Score Source: CVE-2024-38999

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CVSS Score Source: CVE-2024-38999

Vulnerability Information

CPE: cpe:2.3:a:jrburke:requirejs:*:*:*:*:*:*:*:*

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 6/30/2024

Reference Information

CVE: CVE-2024-38999