CVE-2024-11831

published 10 Feb 2025 · updated 5 Nov 2026

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

5.4MediumCVSS 5.4EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 6.0.2.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red Hat.NET 6.0 on Red Hat Enterprise Linux
Red Hat3scale API Management Platform
Red HatAdvanced Cluster Management for Kubernetes
Red HatAdvanced Cluster Security
Red HatAnsible Automation Platform
Red HatCeph Storage
Red HatCryostat
Red HatData Grid
Red HatDeveloper Hub
Red HatDiscovery
Red HatEnterprise Linux
Red HatFuse
Red HatIntegration Camel K
Red HatJBoss
Red HatLogging Subsystem for Red Hat OpenShift
Red HatMigration Toolkit for Virtualization
Red HatOpenShift AI
Red HatOpenShift Container Platform
Red HatOpenShift Dev Spaces
Red HatOpenShift Lightspeed
Red HatOpenShift Pipelines
Red HatOpenShift Serverless
Red HatOpenShift Service Mesh
Red HatOpenShift distributed tracing
Red HatProcess Automation
Red HatQuay
Red HatRHODF-4.14-RHEL-9
Red HatRHODF-4.15-RHEL-9
Red HatRHODF-4.16-RHEL-9
Red HatRHODF-4.17-RHEL-9
Red HatRHODF-4.18-RHEL-9
Red HatSatellite
Red HatSingle Sign-On
Red HatTrusted Profile Analyzer
Red Hatbuild of Apache Camel - HawtIO
Red Hatbuild of Apicurio Registry
Red Hatbuild of OptaPlanner
>=6.0 <6.0.26.0.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in JBoss, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-11831 severity on Zeptric[![CVE-2024-11831](https://zeptric.io/badge/cve/CVE-2024-11831.svg)](https://zeptric.io/cve/CVE-2024-11831)