Skip to content

Red Hat Enterprise Linux

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

CVE-2024-11831GHSA-76p7-773f-r4q5Published 10 Feb 2025, 15:27 UTC

Real-world risk

1.1/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.4

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from redhat)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Red Hat Enterprise LinuxUbiquitousnot stated—
JBoss Enterprise Application PlatformWidespreadnot stated—
KeycloakWidespreadnot stated—
Red Hat OpenShift Container PlatformWidespreadnot stated—
serialize-javascriptWidespread>= 6.0.0, < 6.0.26.0.2
.NET 6.0 on Red Hat Enterprise LinuxNichenot stated—
Cryostat 3Nichenot stated—
Logging Subsystem for Red Hat OpenShiftNichenot stated—
Migration Toolkit for VirtualizationNichenot stated—
RHODF-4.14-RHEL-9Nichenot stated—
Red Hat 3scale API Management Platform 2Nichenot stated—
Red Hat Advanced Cluster Management for Kubernetes 2Nichenot stated—
Red Hat Advanced Cluster Security 4.4Nichenot stated—
Red Hat Ansible Automation Platform 2Nichenot stated—
Red Hat Ceph Storage 7.1Nichenot stated—
Red Hat Data Grid 8Nichenot stated—
Red Hat Developer Hub 1Nichenot stated—
Red Hat Discovery 1Nichenot stated—
Red Hat Fuse 7Nichenot stated—
Red Hat Integration Camel K 1Nichenot stated—
Red Hat Process Automation 7Nichenot stated—
Red Hat Quay 3Nichenot stated—
Red Hat Satellite 6Nichenot stated—
Red Hat Trusted Profile AnalyzerNichenot stated—
Red Hat build of Apache Camel - HawtIO 4Nichenot stated—
Red Hat build of Apicurio Registry 2Nichenot stated—
Red Hat build of OptaPlanner 8Nichenot stated—
serialize-javascriptNiche>= 6.0, < 6.0.26.0.2

What to do

Update to a fixed version: 6.0.2.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 1.2% chance of exploitation in 30 days (percentile 68), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.420
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.42 × threat 0.851.071
  4. Rounded to one decimal between 0.1 and 101.1

How the score works

Exploitation and evidence timeline

  1. 10 Feb 2025 Published
  2. 2 Dec 2026 Risk 1.1 (cvss fallback)

Weakness

CWE-79

References

Get alerts for Red Hat Enterprise Linux

Free email or text alerts when a vulnerability in Red Hat Enterprise Linux reaches risk 8 or higher. Nothing else.