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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | serialize-javascript | >= 6.0.0, < 6.0.2 | 6.0.2 | GHSA-76p7-773f-r4q5 |
Advisories 7
- ALSA-2025:0381 Important: .NET 8.0 security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2026:2769 Red Hat Security Advisory: Red Hat Ceph Storage 7.1 security and bug fix updates Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:1536 Red Hat Security Advisory: Red Hat Ceph Storage 9.0 Security and Enhancement update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2025:21068 Red Hat Security Advisory: Red Hat Ceph Storage 8.1 bug fix update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2025:0381 Red Hat Security Advisory: .NET 8.0 security update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHBA-2025:0304 Red Hat Bug Fix Advisory: .NET 8.0 bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- WID-SEC-2025-2584 Red Hat Enterprise Linux Ceph Storage: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 1, 2026
References
- RHBA-2025:0304 vendor-advisory
- RHSA-2025:0381 vendor-advisory
- RHSA-2025:10853 vendor-advisory
- RHSA-2025:1334 vendor-advisory
- RHSA-2025:1468 vendor-advisory
- RHSA-2025:21068 vendor-advisory
- RHSA-2025:21203 vendor-advisory
- RHSA-2025:3870 vendor-advisory
- RHSA-2025:4511 vendor-advisory
- RHSA-2025:8059 vendor-advisory
- RHSA-2025:8078 vendor-advisory
- RHSA-2025:8233 vendor-advisory
- RHSA-2025:8479 vendor-advisory
- RHSA-2025:8512 vendor-advisory
- RHSA-2025:8544 vendor-advisory
- RHSA-2025:8551 vendor-advisory
- RHSA-2025:9294 vendor-advisory
- RHSA-2026:1536 vendor-advisory
- RHSA-2026:2769 vendor-advisory
- RHSA-2026:62115 vendor-advisory
- RHSA-2026:83548 vendor-advisory
- RHSA-2026:8568 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2024-11831 vdb-entry
- RHBZ#2312579 issue-tracking
- https://github.com/yahoo/serialize-javascript/commit/f27d65d3de42affe2aac14607066c293891cec4e
- https://github.com/yahoo/serialize-javascript/pull/173