CVE-2024-11831

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

5.4 medium EPSS 1.16%

Published 10 Feb 2025 Updated 1 Dec 2026 CNA: redhat

Check your servers for CVE-2024-11831

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-11831 affects serialize-javascript, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

5.4 medium CVSS 3.1 from redhat (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
required: a user has to do something, such as open a link or a file
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality low, integrity low, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 68.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Feb 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-79 Improper Neutralization of Input During Web Page Generation

Affected products

As the CNA lists them. The first 100 of 126 entries; all of them are in the record on cve.org.

ProductVersions
serialize-javascript
package serialize-javascript
affected from 6.0, before 6.0.2
Red Hat Advanced Cluster Security 4.4
package advanced-cluster-security/rhacs-main-rhel8
unaffected 4.4.8-2 and later
Other versions: affected
Red Hat Advanced Cluster Security 4.5
package advanced-cluster-security/rhacs-main-rhel8
unaffected 4.5.6-2 and later
Other versions: affected
Red Hat Ceph Storage 7.1
package ceph
unaffected 2:18.2.1-381.el8cp and later
Other versions: affected
Red Hat Ceph Storage 7.1
package ceph
unaffected 2:18.2.1-413.el8cp and later
Other versions: affected
Red Hat Ceph Storage 7.1
package libarrow
unaffected 0:23.0.1-5.el9cp and later
Other versions: affected
Red Hat Ceph Storage 7.1
package liborc
unaffected 0:1.8.7-1.el9cp and later
Other versions: affected
Red Hat Ceph Storage 7.1
package thrift
unaffected 0:0.24.0-2.el9cp and later
Other versions: affected
Red Hat Ceph Storage 7.1
package ceph
unaffected 2:18.2.1-381.el8cp and later
Other versions: affected
Red Hat Ceph Storage 7.1
package ceph
unaffected 2:18.2.1-413.el8cp and later
Other versions: affected
Red Hat Ceph Storage 7.1
package libarrow
unaffected 0:23.0.1-5.el9cp and later
Other versions: affected
Red Hat Ceph Storage 7.1
package liborc
unaffected 0:1.8.7-1.el9cp and later
Other versions: affected
Red Hat Ceph Storage 7.1
package thrift
unaffected 0:0.24.0-2.el9cp and later
Other versions: affected
Red Hat Ceph Storage 8.1
package ceph
unaffected 2:19.2.1-292.el9cp and later
Other versions: affected
Red Hat Ceph Storage 8.1
package ceph
unaffected 2:19.2.1-405.el9cp and later
Other versions: affected
Red Hat Ceph Storage 8.1
package libarrow
unaffected 0:23.0.1-5.el9cp and later
Other versions: affected
Red Hat Ceph Storage 8.1
package thrift
unaffected 0:0.24.0-1.el9cp and later
Other versions: affected
Red Hat Ceph Storage 9.0
package ceph
unaffected 2:20.1.0-144.el10cp and later
Other versions: affected
Red Hat Ceph Storage 9.0
package ceph
unaffected 2:20.1.0-144.el10cp and later
Other versions: affected
Red Hat Enterprise Linux 8
package dotnet8.0
unaffected 0:8.0.112-1.el8_10 and later
Other versions: affected
Red Hat Enterprise Linux 9
package dotnet8.0
unaffected 0:8.0.112-1.el9_5 and later
Other versions: affected
RHODF-4.14-RHEL-9
package odf4/ocs-client-console-rhel9
unaffected v4.14.18-2 and later
Other versions: affected
RHODF-4.14-RHEL-9
package odf4/odf-console-rhel9
unaffected v4.14.18-3 and later
Other versions: affected
RHODF-4.14-RHEL-9
package odf4/odf-multicluster-console-rhel9
unaffected v4.14.18-2 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/ocs-client-console-rhel9
unaffected v4.15.14-2 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-console-rhel9
unaffected v4.15.14-2 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-multicluster-console-rhel9
unaffected v4.15.14-2 and later
Other versions: affected
RHODF-4.16-RHEL-9
package odf4/ocs-client-console-rhel9
unaffected v4.16.10-4 and later
Other versions: affected
RHODF-4.16-RHEL-9
package odf4/odf-console-rhel9
unaffected v4.16.10-4 and later
Other versions: affected
RHODF-4.16-RHEL-9
package odf4/odf-multicluster-console-rhel9
unaffected v4.16.10-3 and later
Other versions: affected
RHODF-4.17-RHEL-9
package odf4/ocs-client-console-rhel9
unaffected v4.17.7-2 and later
Other versions: affected
RHODF-4.17-RHEL-9
package odf4/odf-console-rhel9
unaffected v4.17.7-2 and later
Other versions: affected
RHODF-4.17-RHEL-9
package odf4/odf-multicluster-console-rhel9
unaffected v4.17.7-2 and later
Other versions: affected
RHODF-4.18-RHEL-9
package odf4/ocs-client-console-rhel9
unaffected v4.18.2-8 and later
Other versions: affected
RHODF-4.18-RHEL-9
package odf4/odf-console-rhel9
unaffected v4.18.2-7 and later
Other versions: affected
RHODF-4.18-RHEL-9
package odf4/odf-multicluster-console-rhel9
unaffected v4.18.2-8 and later
Other versions: affected
Red Hat Ceph Storage 7.1
package rhceph/rhceph-7-rhel9
unaffected 1791452477 and later
Other versions: affected
Red Hat Ceph Storage 8
package rhceph/rhceph-8-rhel9
unaffected 8 and later
Other versions: affected
Red Hat Ceph Storage 8.1
package rhceph/rhceph-8-rhel9
unaffected 1787550654 and later
Other versions: affected
Red Hat Ceph Storage 9.0
package rhceph/rhceph-9-rhel9
unaffected 1776359884 and later
Other versions: affected
Red Hat OpenShift Pipelines 1.14.6
package openshift-pipelines/pipelines-hub-ui-rhel8
unaffected v1.14.6-1744143767 and later
Other versions: affected
Red Hat OpenShift Pipelines 1.15
package openshift-pipelines/pipelines-console-plugin-rhel8
unaffected v1.15.3-1746939886 and later
Other versions: affected
Red Hat OpenShift Pipelines 1.15
package openshift-pipelines/pipelines-hub-ui-rhel8
unaffected v1.15.3-1746936251 and later
Other versions: affected
Red Hat OpenShift Pipelines 1.16
package openshift-pipelines/pipelines-console-plugin-rhel8
unaffected v1.16.4-1747983385 and later
Other versions: affected
Red Hat OpenShift Pipelines 1.16
package openshift-pipelines/pipelines-hub-ui-rhel8
unaffected v1.16.4-1747979846 and later
Other versions: affected
Red Hat OpenShift Pipelines 1.17
package openshift-pipelines/pipelines-console-plugin-rhel8
unaffected v1.17.2-1749452800 and later
Other versions: affected
Red Hat OpenShift Pipelines 1.17
package openshift-pipelines/pipelines-hub-ui-rhel8
unaffected v1.17.2-1750066936 and later
Other versions: affected
Red Hat OpenShift Pipelines 1.18.0
package openshift-pipelines/pipelines-console-plugin-rhel9
unaffected v1.18.1-1747749913 and later
Other versions: affected
Red Hat OpenShift Pipelines 1.19
package openshift-pipelines/pipelines-console-plugin-rhel9
unaffected v1.19.0-1752127853 and later
Other versions: affected
Cryostat 3
package serialize-javascript
affected the record does not list versions
Logging Subsystem for Red Hat OpenShift
package openshift-logging/kibana6-rhel8
affected the record does not list versions
Migration Toolkit for Virtualization
package migration-toolkit-virtualization/mtv-console-plugin-rhel9
unaffected the record does not list versions
.NET 6.0 on Red Hat Enterprise Linux
package rh-dotnet60-dotnet
unknown the record does not list versions
OpenShift Lightspeed
package openshift-lightspeed-beta/lightspeed-console-plugin-rhel9
affected the record does not list versions
OpenShift Pipelines
package openshift-pipelines/pipelines-hub-api-rhel8
affected the record does not list versions
OpenShift Pipelines
package openshift-pipelines/pipelines-hub-db-migration-rhel8
affected the record does not list versions
OpenShift Serverless
package serialize-javascript
affected the record does not list versions
OpenShift Service Mesh 2
package openshift-service-mesh/kiali-ossmc-rhel8
affected the record does not list versions
OpenShift Service Mesh 2
package openshift-service-mesh/kiali-rhel8
affected the record does not list versions
Red Hat 3scale API Management Platform 2
package 3scale-amp2/system-rhel7
affected the record does not list versions
Red Hat Advanced Cluster Management for Kubernetes 2
package rhacm2/console-rhel8
unaffected the record does not list versions
Red Hat Advanced Cluster Security 4
package advanced-cluster-security/rhacs-central-db-rhel8
unaffected the record does not list versions
Red Hat Advanced Cluster Security 4
package advanced-cluster-security/rhacs-rhel8-operator
unaffected the record does not list versions
Red Hat Advanced Cluster Security 4
package advanced-cluster-security/rhacs-roxctl-rhel8
unaffected the record does not list versions
Red Hat Advanced Cluster Security 4
package advanced-cluster-security/rhacs-scanner-v4-db-rhel8
unaffected the record does not list versions
Red Hat Advanced Cluster Security 4
package advanced-cluster-security/rhacs-scanner-v4-rhel8
unaffected the record does not list versions
Red Hat Ansible Automation Platform 2
package aap-cloud-ui-container
affected the record does not list versions
Red Hat Ansible Automation Platform 2
package ansible-automation-platform-25/lightspeed-rhel8
affected the record does not list versions
Red Hat Ansible Automation Platform 2
package automation-controller
unaffected the record does not list versions
Red Hat Ansible Automation Platform 2
package automation-eda-controller
unaffected the record does not list versions
Red Hat build of Apache Camel - HawtIO 4
package serialize-javascript
unaffected the record does not list versions
Red Hat build of Apicurio Registry 2
package serialize-javascript
affected the record does not list versions
Red Hat build of OptaPlanner 8
package serialize-javascript
affected the record does not list versions
Red Hat Ceph Storage 7
package grafana
unaffected the record does not list versions
Red Hat Ceph Storage 7
package pybind
unaffected the record does not list versions
Red Hat Ceph Storage 8
package grafana
unaffected the record does not list versions
Red Hat Ceph Storage 8
package pybind
affected the record does not list versions
Red Hat Ceph Storage 9
package grafana
affected the record does not list versions
Red Hat Ceph Storage 9
package libarrow
affected the record does not list versions
Red Hat Ceph Storage 9
package pybind
affected the record does not list versions
Red Hat Data Grid 8
package serialize-javascript
affected the record does not list versions
Red Hat Developer Hub 1
package rhdh/rhdh-hub-rhel9
unaffected the record does not list versions
Red Hat Discovery 1
package discovery-server-container
affected the record does not list versions
Red Hat Enterprise Linux 10
package dotnet8.0
unaffected the record does not list versions
Red Hat Enterprise Linux 8
package dotnet6.0
affected the record does not list versions
Red Hat Enterprise Linux 8
package grafana
affected the record does not list versions
Red Hat Enterprise Linux 8
package pcs
unaffected the record does not list versions
Red Hat Enterprise Linux 9
package dotnet6.0
unknown the record does not list versions
Red Hat Enterprise Linux 9
package dotnet7.0
unknown the record does not list versions
Red Hat Enterprise Linux 9
package pcs
unaffected the record does not list versions
Red Hat Fuse 7
package serialize-javascript
affected the record does not list versions
Red Hat Integration Camel K 1
package serialize-javascript
unaffected the record does not list versions
Red Hat JBoss Enterprise Application Platform 7
package serialize-javascript
unaffected the record does not list versions
Red Hat JBoss Enterprise Application Platform 8
package serialize-javascript
unaffected the record does not list versions
Red Hat JBoss Enterprise Application Platform Expansion Pack
package serialize-javascript
unaffected the record does not list versions
Red Hat OpenShift AI (RHOAI)
package odh-dashboard-rhel8
unaffected the record does not list versions
Red Hat OpenShift AI (RHOAI)
package odh-data-science-pipelines-argo-argoexec-rhel8
affected the record does not list versions
Red Hat OpenShift AI (RHOAI)
package odh-data-science-pipelines-argo-workflowcontroller-rhel8
affected the record does not list versions
Red Hat OpenShift AI (RHOAI)
package odh-kf-notebook-controller-rhel8
affected the record does not list versions
Red Hat OpenShift AI (RHOAI)
package odh-ml-pipelines-api-server-v2-rhel8
affected the record does not list versions

Is my server affected?

Find the installed version of serialize-javascript and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i serialize-javascript
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-11831 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-11831

RHEL, Rocky, Alma, Fedora

rpm -q serialize-javascript
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-11831

Alpine

apk list --installed | grep -i serialize-javascript

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-11831
trivy image --scanners vuln IMAGE | grep CVE-2024-11831

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

14 more

Other references

Source: the record CVE-2024-11831 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.