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

- Severity: Medium 5.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 68% of CVEs (2026-12-01)
- Published: 2025-02-10T15:27:46.732Z
- Modified: 2026-12-01T03:45:09.129Z
- Also known as: GHSA-76p7-773f-r4q5
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- serialize-javascript: from 6.0 before 6.0.2
- advanced-cluster-security/rhacs-main-rhel8: no versions given (not affected: from 4.4.8-2 before *; from 4.5.6-2 before *)
- ceph: no versions given (not affected: from 2:18.2.1-381.el8cp before *; from 2:18.2.1-413.el8cp before *; from 2:19.2.1-292.el9cp before *; from 2:19.2.1-405.el9cp before *; from 2:20.1.0-144.el10cp before *)
- libarrow: no versions given (not affected: from 0:23.0.1-5.el9cp before *)
- liborc: no versions given (not affected: from 0:1.8.7-1.el9cp before *)
- thrift: no versions given (not affected: from 0:0.24.0-2.el9cp before *; from 0:0.24.0-1.el9cp before *)
- dotnet8.0: no versions given (not affected: from 0:8.0.112-1.el8_10 before *; from 0:8.0.112-1.el9_5 before *)
- odf4/ocs-client-console-rhel9: no versions given (not affected: from v4.14.18-2 before *; from v4.15.14-2 before *; from v4.16.10-4 before *; from v4.17.7-2 before *; from v4.18.2-8 before *)
- odf4/odf-console-rhel9: no versions given (not affected: from v4.14.18-3 before *; from v4.15.14-2 before *; from v4.16.10-4 before *; from v4.17.7-2 before *; from v4.18.2-7 before *)
- odf4/odf-multicluster-console-rhel9: no versions given (not affected: from v4.14.18-2 before *; from v4.15.14-2 before *; from v4.16.10-3 before *; from v4.17.7-2 before *; from v4.18.2-8 before *)
- rhceph/rhceph-7-rhel9: no versions given (not affected: from 1791452477 before *)
- rhceph/rhceph-8-rhel9: no versions given (not affected: from 8 before *; from 1787550654 before *)
- rhceph/rhceph-9-rhel9: no versions given (not affected: from 1776359884 before *)
- openshift-pipelines/pipelines-hub-ui-rhel8: no versions given (not affected: from v1.14.6-1744143767 before *; from v1.15.3-1746936251 before *; from v1.16.4-1747979846 before *; from v1.17.2-1750066936 before *)
- openshift-pipelines/pipelines-console-plugin-rhel8: no versions given (not affected: from v1.15.3-1746939886 before *; from v1.16.4-1747983385 before *; from v1.17.2-1749452800 before *)
- openshift-pipelines/pipelines-console-plugin-rhel9: no versions given (not affected: from v1.18.1-1747749913 before *; from v1.19.0-1752127853 before *)
- openshift-logging/kibana6-rhel8: no versions given
- migration-toolkit-virtualization/mtv-console-plugin-rhel9: no versions given
- rh-dotnet60-dotnet: no versions given
- openshift-lightspeed-beta/lightspeed-console-plugin-rhel9: no versions given
- openshift-pipelines/pipelines-hub-api-rhel8: no versions given
- openshift-pipelines/pipelines-hub-db-migration-rhel8: no versions given
- openshift-service-mesh/kiali-ossmc-rhel8: no versions given
- openshift-service-mesh/kiali-rhel8: no versions given
- 3scale-amp2/system-rhel7: no versions given
- rhacm2/console-rhel8: no versions given
- advanced-cluster-security/rhacs-central-db-rhel8: no versions given
- advanced-cluster-security/rhacs-rhel8-operator: no versions given
- advanced-cluster-security/rhacs-roxctl-rhel8: no versions given
- advanced-cluster-security/rhacs-scanner-v4-db-rhel8: no versions given
- advanced-cluster-security/rhacs-scanner-v4-rhel8: no versions given
- aap-cloud-ui-container: no versions given
- ansible-automation-platform-25/lightspeed-rhel8: no versions given
- automation-controller: no versions given
- automation-eda-controller: no versions given
- grafana: no versions given
- pybind: no versions given
- rhdh/rhdh-hub-rhel9: no versions given
- discovery-server-container: no versions given
- dotnet6.0: no versions given
- pcs: no versions given
- dotnet7.0: no versions given
- odh-dashboard-rhel8: no versions given
- odh-data-science-pipelines-argo-argoexec-rhel8: no versions given
- odh-data-science-pipelines-argo-workflowcontroller-rhel8: no versions given
- odh-kf-notebook-controller-rhel8: no versions given
- odh-ml-pipelines-api-server-v2-rhel8: no versions given
- odh-ml-pipelines-driver-rhel8: no versions given
- odh-ml-pipelines-launcher-rhel8: no versions given
- odh-ml-pipelines-persistenceagent-v2-rhel8: no versions given
- odh-ml-pipelines-scheduledworkflow-v2-rhel8: no versions given
- odh-model-registry-rhel8: no versions given
- odh-notebook-controller-rhel8: no versions given
- rhoai/odh-dashboard-rhel8: no versions given
- rhoai/odh-rhel8-operator: no versions given
- openshift3/ose-console: no versions given
- openshift4/ose-monitoring-plugin-rhel8: no versions given
- devspaces/code-rhel8: no versions given
- devspaces/dashboard-rhel8: no versions given
- devspaces/traefik-rhel8: no versions given
- and 12 more: see the JSON

## Every score

- redhat: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://access.redhat.com/errata/RHBA-2025:0304> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:0381> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:10853> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:1334> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:1468> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:21068> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:21203> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:3870> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:4511> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:8059> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:8078> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:8233> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:8479> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:8512> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:8544> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:8551> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2025:9294> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:1536> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:2769> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:61939> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:62115> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:83515> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:83548> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:8568> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2024-11831> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2312579> (issue-tracking, web)
- <https://github.com/yahoo/serialize-javascript/commit/f27d65d3de42affe2aac14607066c293891cec4e> (web)
- <https://github.com/yahoo/serialize-javascript/pull/173> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-11831> (advisory)
- <https://github.com/yahoo/serialize-javascript/commit/7f3ac252d86b802454cb43782820aea2e0f6dc25> (web)
- <https://github.com/yahoo/serialize-javascript> (package)

## Sources

- CVE List: [CVE-2024-11831](https://www.cve.org/CVERecord?id=CVE-2024-11831), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-76p7-773f-r4q5](https://github.com/advisories/GHSA-76p7-773f-r4q5), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2024-11831](https://nvd.nist.gov/vuln/detail/CVE-2024-11831), Public domain, modified 2026-11-26

---

Page: https://cve.day/CVE-2024-11831 · Whole record: https://cve.day/CVE-2024-11831.json · Rebuilt by cve.day 2026-12-01T04:17:25.839Z
