CVE-2024-11831

Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript

MEDIUM
5.4
CVSS Score
Published: February 10, 2025 at 03:27 PM UTC
Updated: October 30, 2026 at 07:17 PM UTC
34 products affected across 2 vendorsEnterprise LinuxOpenShift Container PlatformSatellite

Using N/A by N/A?

Get instant alerts when new vulnerabilities affect N/A - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.4
Exploit prediction
EPSS 1%
SSVC
No known exploit

Description

A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions
Vendor states this is fixed in 2 (unaffected)
All versions
Vendor states this is fixed in 4 (unaffected)
Vendor states this is fixed in 4.4.8-2 (unaffected)
Vendor states this is fixed in 4.5.6-2 (unaffected)
All versions2
Vendor states this is fixed in 2 (unaffected)
All versions
Vendor states this is fixed in 4 (unaffected)
All versions7
Vendor states this is fixed in 1776359884 (unaffected)
Vendor states this is fixed in 1787550654 (unaffected)
Vendor states this is fixed in 1791452477 (unaffected)
Vendor states this is fixed in 2:18.2.1-381.el8cp (unaffected)
Vendor states this is fixed in 2:19.2.1-292.el9cp (unaffected)
Vendor states this is fixed in 2:20.1.0-144.el10cp (unaffected)
Vendor states this is fixed in 7 (unaffected)
Vendor states this is fixed in 8 (unaffected)
90%
All versions3
All versions8

References (26)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.4MEDIUMredhat
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card