Skip to content
OpenAdvisories
Medium · 5.4 CVE-2024-11831 EUVD-2025-4485GHSA-76p7-773f-r4q5

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

Published Feb 10, 2025 · Updated Nov 5, 2026 · Assigned by redhat

Vendor: Red Hat Product: .NET 6.0 on Red Hat Enterprise Linux Product: Cryostat 3 Product: Logging Subsystem for Red Hat OpenShift Product: Migration Toolkit for Virtualization Product: OpenShift Lightspeed Product: OpenShift Pipelines Product: OpenShift Serverless Product: OpenShift Service Mesh 2 Product: Red Hat 3scale API Management Platform 2 Product: Red Hat Advanced Cluster Management for Kubernetes 2 Product: Red Hat Advanced Cluster Security 4 Product: Red Hat Advanced Cluster Security 4.4 Product: Red Hat Advanced Cluster Security 4.5 Product: Red Hat Ansible Automation Platform 2 Product: Red Hat build of Apache Camel - HawtIO 4 Product: Red Hat build of Apicurio Registry 2 Product: Red Hat build of OptaPlanner 8 Product: Red Hat Ceph Storage 7 Product: Red Hat Ceph Storage 7.1 Product: Red Hat Ceph Storage 8 Product: Red Hat Ceph Storage 8.1 Product: Red Hat Ceph Storage 9 Product: Red Hat Ceph Storage 9.0 Product: Red Hat Data Grid 8 Product: Red Hat Developer Hub 1 Product: Red Hat Discovery 1 Product: Red Hat Enterprise Linux 10 Product: Red Hat Enterprise Linux 8 Product: Red Hat Enterprise Linux 9 Product: Red Hat Fuse 7 Product: Red Hat Integration Camel K 1 Product: Red Hat JBoss Enterprise Application Platform 7 Product: Red Hat JBoss Enterprise Application Platform 8 Product: Red Hat JBoss Enterprise Application Platform Expansion Pack Product: Red Hat OpenShift AI (RHOAI) Product: Red Hat OpenShift Container Platform 3.11 Product: Red Hat OpenShift Container Platform 4 Product: Red Hat OpenShift Dev Spaces Product: Red Hat OpenShift Pipelines 1.14.6 Product: Red Hat OpenShift Pipelines 1.15 Product: Red Hat OpenShift Pipelines 1.16 Product: Red Hat OpenShift Pipelines 1.17 Product: Red Hat OpenShift Pipelines 1.18.0 Product: Red Hat OpenShift Pipelines 1.19 Product: RHODF-4.14-RHEL-9 Product: RHODF-4.15-RHEL-9 Product: RHODF-4.16-RHEL-9 Product: RHODF-4.17-RHEL-9 Product: RHODF-4.18-RHEL-9 Package: node-serialize-javascript Package: node-serialize-javascript Package: serialize-javascript Platform: Linux Ecosystem: Debian Ecosystem: npm Ecosystem: Ubuntu

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 products

VendorProductAffectedFixed
— serialize-javascript 6.0 – < 6.0.2 6.0.2
Red Hat Red Hat Advanced Cluster Security 4.4 — —
Red Hat Red Hat Advanced Cluster Security 4.5 — —
Red Hat Red Hat Ceph Storage 7.1 — —
Red Hat Red Hat Ceph Storage 8.1 — —
Red Hat Red Hat Ceph Storage 9.0 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat RHODF-4.14-RHEL-9 — —
Red Hat RHODF-4.15-RHEL-9 — —
Red Hat RHODF-4.16-RHEL-9 — —
Red Hat RHODF-4.17-RHEL-9 — —
Red Hat RHODF-4.18-RHEL-9 — —
Red Hat Red Hat Ceph Storage 8 — —
Red Hat Red Hat OpenShift Pipelines 1.14.6 — —
Red Hat Red Hat OpenShift Pipelines 1.15 — —
Red Hat Red Hat OpenShift Pipelines 1.16 — —
Red Hat Red Hat OpenShift Pipelines 1.17 — —
Red Hat Red Hat OpenShift Pipelines 1.18.0 — —
Red Hat Red Hat OpenShift Pipelines 1.19 — —
Red Hat Cryostat 3 — —
Red Hat Logging Subsystem for Red Hat OpenShift — —
Red Hat Migration Toolkit for Virtualization — —
Red Hat .NET 6.0 on Red Hat Enterprise Linux — —
Red Hat OpenShift Lightspeed — —
Red Hat OpenShift Pipelines — —
Red Hat OpenShift Serverless — —
Red Hat OpenShift Service Mesh 2 — —
Red Hat Red Hat 3scale API Management Platform 2 — —
Red Hat Red Hat Advanced Cluster Management for Kubernetes 2 — —
Red Hat Red Hat Advanced Cluster Security 4 — —
Red Hat Red Hat Ansible Automation Platform 2 — —
Red Hat Red Hat build of Apache Camel - HawtIO 4 — —
Red Hat Red Hat build of Apicurio Registry 2 — —
Red Hat Red Hat build of OptaPlanner 8 — —
Red Hat Red Hat Ceph Storage 7 — —
Red Hat Red Hat Ceph Storage 9 — —
Red Hat Red Hat Data Grid 8 — —
Red Hat Red Hat Developer Hub 1 — —
Red Hat Red Hat Discovery 1 — —
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Fuse 7 — —
Red Hat Red Hat Integration Camel K 1 — —
Red Hat Red Hat JBoss Enterprise Application Platform 7 — —
Red Hat Red Hat JBoss Enterprise Application Platform 8 — —
Red Hat Red Hat JBoss Enterprise Application Platform Expansion Pack — —
Red Hat Red Hat OpenShift AI (RHOAI) — —
Red Hat Red Hat OpenShift Container Platform 3.11 — —
Red Hat Red Hat OpenShift Container Platform 4 — —
Red Hat Red Hat OpenShift Dev Spaces — —
Red Hat Red Hat OpenShift distributed tracing 3 — —
Red Hat Red Hat Process Automation 7 — —
Red Hat Red Hat Quay 3 — —
Red Hat Red Hat Satellite 6 — —
Red Hat Red Hat Single Sign-On 7 — —
Red Hat Red Hat Trusted Profile Analyzer — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-serialize-javascript 6.0.2-1 —
Debian 13 node-serialize-javascript 6.0.2-1 —
Debian 12 node-serialize-javascript 6.0.0-2+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-serialize-javascript No fix yet —
Ubuntu 26.04 LTS node-serialize-javascript No fix yet —
Ubuntu 25.10 node-serialize-javascript No fix yet —
Ubuntu 24.04 LTS node-serialize-javascript No fix yet —
Ubuntu 22.04 LTS node-serialize-javascript No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 dotnet-hostfxr-8.0 +7 8.0.12-1.el9_5 RHBA-2025:0304
RHEL 9 dotnet8.0 +4 8.0.112-1.el9_5 RHBA-2025:0304
RHEL 8 dotnet-hostfxr-8.0 +7 8.0.12-1.el8_10 RHSA-2025:0381
RHEL 8 dotnet8.0 +4 8.0.112-1.el8_10 RHSA-2025:0381
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Ceph Storage 9 ceph +27 2:20.1.0-144.el9cp RHSA-2026:1536
Red Hat Ceph Storage 8 ceph +27 2:19.2.1-292.el9cp RHSA-2025:21068
Red Hat Ceph Storage 7 ceph +25 2:18.2.1-381.el8cp RHSA-2026:2769
Red Hat Ceph Storage 7 cephadm 2:18.2.1-381.el9cp RHSA-2026:2769

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 dotnet-hostfxr-8.0 +7 8.0.12-1.el8_10 ALSA-2025:0381
AlmaLinux 8 dotnet-sdk-8.0 +3 8.0.112-1.el8_10 ALSA-2025:0381

Affected packages

EcosystemPackageAffectedFixedRecord
npm serialize-javascript >= 6.0.0, < 6.0.2 6.0.2 GHSA-76p7-773f-r4q5

Advisories 7

References