CVE-2024-11831Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, npm: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-serialize-javascript | Fix pending | UBUNTU-CVE-2024-11831 | |
| Ubuntu 26.04 | node-serialize-javascript | Under investigation | UBUNTU-CVE-2024-11831 | |
| Ubuntu 25.10 | node-serialize-javascript | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-11831 | |
| Ubuntu 24.04 | node-serialize-javascript | Under investigation | UBUNTU-CVE-2024-11831 | |
| Ubuntu 22.04 | node-serialize-javascript | Under investigation | UBUNTU-CVE-2024-11831 | |
| Debian 14 | node-serialize-javascript | Fixed | 6.0.2-1 | DEBIAN-CVE-2024-11831 |
| Debian 13 | node-serialize-javascript | Fixed | 6.0.2-1 | DEBIAN-CVE-2024-11831 |
| Debian 12 | node-serialize-javascript | Fixed | 6.0.0-2+deb12u1 | DEBIAN-CVE-2024-11831 |
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-dbg-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-host | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-runtime-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-runtime-dbg-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-6.0-source-built-artifacts | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0-source-built-artifacts | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0 | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0-source-built-artifacts | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-dbg-8.0 | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-templates-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-8.0 | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet8.0 | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | netstandard-targeting-pack-2.1 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | pcs | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-6.0 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-6.0 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-6.0 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-host | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-6.0 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-runtime-6.0 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-6.0 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-6.0-source-built-artifacts | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0 | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0-source-built-artifacts | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-8.0 | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-6.0 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-templates-6.0 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet-templates-8.0 | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet6.0 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | dotnet8.0 | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | grafana | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | netstandard-targeting-pack-2.1 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | pcs | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Not affected | ||
| AlmaLinux 8 | aspnetcore-runtime-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | aspnetcore-runtime-dbg-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | aspnetcore-targeting-pack-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-apphost-pack-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-hostfxr-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-runtime-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-runtime-dbg-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-sdk-8.0 | Fixed | 8.0.112-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-sdk-8.0-source-built-artifacts | Fixed | 8.0.112-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-sdk-dbg-8.0 | Fixed | 8.0.112-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-targeting-pack-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-templates-8.0 | Fixed | 8.0.112-1.el8_10 | ALSA-2025:0381 |
| npm library | serialize-javascript | Fixed | 6.0.2 | GHSA-76p7-773f-r4q5 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- serialize-javascript: affected: 6.0 to before 6.0.2; fixed in
6.0.2 - Red Hat Advanced Cluster Security 4.4
- Red Hat Advanced Cluster Security 4.5
- Red Hat Ceph Storage 7.1
- Red Hat Ceph Storage 8.1
- Red Hat Ceph Storage 9.0
- Red Hat Enterprise Linux 8
- 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
Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Vendor advisories:
- https://access.redhat.com/errata/RHBA-2025:0304 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:0381 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:10853 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:1334 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:1468 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2025:21068 (vendor-advisory)
References
- https://access.redhat.com/errata/RHBA-2025:0304
- https://access.redhat.com/errata/RHSA-2025:0381
- https://access.redhat.com/errata/RHSA-2025:10853
- https://access.redhat.com/errata/RHSA-2025:1334
- https://access.redhat.com/errata/RHSA-2025:1468
- https://access.redhat.com/errata/RHSA-2025:21068
- https://access.redhat.com/errata/RHSA-2025:21203
- https://access.redhat.com/errata/RHSA-2025:3870
- https://access.redhat.com/errata/RHSA-2025:4511
- https://access.redhat.com/errata/RHSA-2025:8059
- https://access.redhat.com/errata/RHSA-2025:8078
- https://access.redhat.com/errata/RHSA-2025:8233
- https://access.redhat.com/errata/RHSA-2025:8479
- https://access.redhat.com/errata/RHSA-2025:8512
- https://access.redhat.com/errata/RHSA-2025:8544
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.