CVEfocus › CVE database › CVE-2024-11831

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

CVSS 5.4 MediumEPSS 1.9% (higher than 80% of CVEs)Published 2025-02-10Updated 2026-11-24Assigner: 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.

CWE-79

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

42Fixed
1Fix pending
3Under investigation
50Will not fix
17Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-serialize-javascriptFix pendingUBUNTU-CVE-2024-11831
Ubuntu 26.04node-serialize-javascriptUnder investigationUBUNTU-CVE-2024-11831
Ubuntu 25.10node-serialize-javascriptWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-11831
Ubuntu 24.04node-serialize-javascriptUnder investigationUBUNTU-CVE-2024-11831
Ubuntu 22.04node-serialize-javascriptUnder investigationUBUNTU-CVE-2024-11831
Debian 14node-serialize-javascriptFixed6.0.2-1DEBIAN-CVE-2024-11831
Debian 13node-serialize-javascriptFixed6.0.2-1DEBIAN-CVE-2024-11831
Debian 12node-serialize-javascriptFixed6.0.0-2+deb12u1DEBIAN-CVE-2024-11831
Red Hat Enterprise Linux 10aspnetcore-runtime-8.0Not affected
Red Hat Enterprise Linux 10aspnetcore-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 10aspnetcore-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 10dotnet-apphost-pack-8.0Not affected
Red Hat Enterprise Linux 10dotnet-hostfxr-8.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-8.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-8.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-8.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 10dotnet-sdk-dbg-8.0Not affected
Red Hat Enterprise Linux 10dotnet-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 10dotnet-templates-8.0Not affected
Red Hat Enterprise Linux 10dotnet8.0Not affected
Red Hat Enterprise Linux 9aspnetcore-runtime-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-runtime-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-runtime-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9aspnetcore-runtime-dbg-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-apphost-pack-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-apphost-pack-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-apphost-pack-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-hostWill not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-hostfxr-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-hostfxr-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-hostfxr-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-runtime-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-runtime-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-runtime-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-runtime-dbg-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-sdk-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-6.0-source-built-artifactsWill not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-7.0-source-built-artifactsWill not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-8.0Fixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-sdk-8.0-source-built-artifactsFixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-sdk-dbg-8.0Fixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-targeting-pack-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-targeting-pack-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-targeting-pack-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-templates-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-templates-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-templates-8.0Fixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet8.0Fixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9netstandard-targeting-pack-2.1Will not fix
Out of support scope
Red Hat Enterprise Linux 9pcsNot affected
Red Hat Enterprise Linux 9pcs-snmpNot affected
Red Hat Enterprise Linux 8aspnetcore-runtime-6.0Will not fix
Will not fix
Red Hat Enterprise Linux 8aspnetcore-runtime-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8aspnetcore-runtime-dbg-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-6.0Will not fix
Will not fix
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnetWill not fix
Will not fix
Red Hat Enterprise Linux 8dotnet-apphost-pack-6.0Will not fix
Will not fix
Red Hat Enterprise Linux 8dotnet-apphost-pack-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-hostWill not fix
Will not fix
Red Hat Enterprise Linux 8dotnet-hostfxr-6.0Will not fix
Will not fix
Red Hat Enterprise Linux 8dotnet-hostfxr-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-runtime-6.0Will not fix
Will not fix
Red Hat Enterprise Linux 8dotnet-runtime-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-runtime-dbg-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-sdk-6.0Will not fix
Will not fix
Red Hat Enterprise Linux 8dotnet-sdk-6.0-source-built-artifactsWill not fix
Will not fix
Red Hat Enterprise Linux 8dotnet-sdk-8.0Fixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-sdk-8.0-source-built-artifactsFixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-sdk-dbg-8.0Fixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-targeting-pack-6.0Will not fix
Will not fix
Red Hat Enterprise Linux 8dotnet-targeting-pack-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-templates-6.0Will not fix
Will not fix
Red Hat Enterprise Linux 8dotnet-templates-8.0Fixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet6.0Will not fix
Will not fix
Red Hat Enterprise Linux 8dotnet8.0Fixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8grafanaWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-azure-monitorWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-cloudwatchWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-elasticsearchWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-graphiteWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-influxdbWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-lokiWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-mssqlWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-mysqlWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-opentsdbWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-postgresWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-prometheusWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-selinuxWill not fix
Will not fix
Red Hat Enterprise Linux 8grafana-stackdriverWill not fix
Will not fix
Red Hat Enterprise Linux 8netstandard-targeting-pack-2.1Will not fix
Will not fix
Red Hat Enterprise Linux 8pcsNot affected
Red Hat Enterprise Linux 8pcs-snmpNot affected
AlmaLinux 8aspnetcore-runtime-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8aspnetcore-runtime-dbg-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8aspnetcore-targeting-pack-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-apphost-pack-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-hostfxr-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-runtime-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-runtime-dbg-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-sdk-8.0Fixed8.0.112-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-sdk-8.0-source-built-artifactsFixed8.0.112-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-sdk-dbg-8.0Fixed8.0.112-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-targeting-pack-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-templates-8.0Fixed8.0.112-1.el8_10ALSA-2025:0381
npm libraryserialize-javascriptFixed6.0.2GHSA-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.

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:

References

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.