5.4medium
Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript
- Severity
- 5.4medium CVSS:3.1 by redhat
- Exploit likelihood
- 1.16% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-76p7-773f-r4q5
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
| Product or package | Versions | Reported by |
|---|---|---|
| serialize-javascript | from 6.0 before 6.0.2 | CVE List |
| advanced-cluster-security/rhacs-main-rhel8 | Not specified Not affected: from 4.4.8-2 before *, from 4.5.6-2 before * | CVE List |
| ceph | Not specified 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 * | CVE List |
| libarrow | Not specified Not affected: from 0:23.0.1-5.el9cp before * | CVE List |
| liborc | Not specified Not affected: from 0:1.8.7-1.el9cp before * | CVE List |
| thrift | Not specified Not affected: from 0:0.24.0-2.el9cp before *, from 0:0.24.0-1.el9cp before * | CVE List |
| dotnet8.0 | Not specified Not affected: from 0:8.0.112-1.el8_10 before *, from 0:8.0.112-1.el9_5 before * | CVE List |
| odf4/ocs-client-console-rhel9 | Not specified 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 * | CVE List |
| odf4/odf-console-rhel9 | Not specified 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 * | CVE List |
| odf4/odf-multicluster-console-rhel9 | Not specified 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 * | CVE List |
| rhceph/rhceph-7-rhel9 | Not specified Not affected: from 1791452477 before * | CVE List |
| rhceph/rhceph-8-rhel9 | Not specified Not affected: from 8 before *, from 1787550654 before * | CVE List |
| rhceph/rhceph-9-rhel9 | Not specified Not affected: from 1776359884 before * | CVE List |
| openshift-pipelines/pipelines-hub-ui-rhel8 | Not specified 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 * | CVE List |
| openshift-pipelines/pipelines-console-plugin-rhel8 | Not specified Not affected: from v1.15.3-1746939886 before *, from v1.16.4-1747983385 before *, from v1.17.2-1749452800 before * | CVE List |
| openshift-pipelines/pipelines-console-plugin-rhel9 | Not specified Not affected: from v1.18.1-1747749913 before *, from v1.19.0-1752127853 before * | CVE List |
| openshift-logging/kibana6-rhel8 | Not specified | CVE List |
| migration-toolkit-virtualization/mtv-console-plugin-rhel9 | Not specified | CVE List |
| rh-dotnet60-dotnet | Not specified | CVE List |
| openshift-lightspeed-beta/lightspeed-console-plugin-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-hub-api-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-hub-db-migration-rhel8 | Not specified | CVE List |
| openshift-service-mesh/kiali-ossmc-rhel8 | Not specified | CVE List |
| openshift-service-mesh/kiali-rhel8 | Not specified | CVE List |
| 3scale-amp2/system-rhel7 | Not specified | CVE List |
| rhacm2/console-rhel8 | Not specified | CVE List |
| advanced-cluster-security/rhacs-central-db-rhel8 | Not specified | CVE List |
| advanced-cluster-security/rhacs-rhel8-operator | Not specified | CVE List |
| advanced-cluster-security/rhacs-roxctl-rhel8 | Not specified | CVE List |
| advanced-cluster-security/rhacs-scanner-v4-db-rhel8 | Not specified | CVE List |
| advanced-cluster-security/rhacs-scanner-v4-rhel8 | Not specified | CVE List |
| aap-cloud-ui-container | Not specified | CVE List |
| ansible-automation-platform-25/lightspeed-rhel8 | Not specified | CVE List |
| automation-controller | Not specified | CVE List |
| automation-eda-controller | Not specified | CVE List |
| grafana | Not specified | CVE List |
| pybind | Not specified | CVE List |
| rhdh/rhdh-hub-rhel9 | Not specified | CVE List |
| discovery-server-container | Not specified | CVE List |
| dotnet6.0 | Not specified | CVE List |
| pcs | Not specified | CVE List |
| dotnet7.0 | Not specified | CVE List |
| odh-dashboard-rhel8 | Not specified | CVE List |
| odh-data-science-pipelines-argo-argoexec-rhel8 | Not specified | CVE List |
| odh-data-science-pipelines-argo-workflowcontroller-rhel8 | Not specified | CVE List |
| odh-kf-notebook-controller-rhel8 | Not specified | CVE List |
| odh-ml-pipelines-api-server-v2-rhel8 | Not specified | CVE List |
| odh-ml-pipelines-driver-rhel8 | Not specified | CVE List |
| odh-ml-pipelines-launcher-rhel8 | Not specified | CVE List |
| odh-ml-pipelines-persistenceagent-v2-rhel8 | Not specified | CVE List |
| odh-ml-pipelines-scheduledworkflow-v2-rhel8 | Not specified | CVE List |
| odh-model-registry-rhel8 | Not specified | CVE List |
| odh-notebook-controller-rhel8 | Not specified | CVE List |
| rhoai/odh-dashboard-rhel8 | Not specified | CVE List |
| rhoai/odh-rhel8-operator | Not specified | CVE List |
| openshift3/ose-console | Not specified | CVE List |
| openshift4/ose-monitoring-plugin-rhel8 | Not specified | CVE List |
| devspaces/code-rhel8 | Not specified | CVE List |
| devspaces/dashboard-rhel8 | Not specified | CVE List |
| devspaces/traefik-rhel8 | Not specified | CVE List |
| rhosdt/jaeger-agent-rhel8 | Not specified | CVE List |
| rhosdt/jaeger-all-in-one-rhel8 | Not specified | CVE List |
| rhosdt/jaeger-collector-rhel8 | Not specified | CVE List |
| rhosdt/jaeger-es-index-cleaner-rhel8 | Not specified | CVE List |
| rhosdt/jaeger-es-rollover-rhel8 | Not specified | CVE List |
| rhosdt/jaeger-ingester-rhel8 | Not specified | CVE List |
| rhosdt/jaeger-query-rhel8 | Not specified | CVE List |
| quay/quay-rhel8 | Not specified | CVE List |
| nodejs-compression-webpack-plugin | Not specified | CVE List |
| nodejs-webpack | Not specified | CVE List |
| rhtpa/rhtpa-trustification-service-rhel9 | Not specified | CVE List |
| serialize-javascript (npm) | from 6.0.0 before 6.0.2 | GitHub Advisory Database |
All scores
| redhat | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Se encontró una falla en npm-serialize-javascript. La vulnerabilidad ocurre porque el módulo serialize-javascript no depura correctamente ciertas entradas, como expresiones regulares u otros tipos de objetos JavaScript, lo que permite que un atacante inyecte código malicioso. Este código podría ejecutarse cuando un navegador web lo deserialice, lo que causa ataques de cross site scripting (XSS). Este problema es crítico en entornos donde se envían datos serializados a clientes web, lo que potencialmente compromete la seguridad del sitio web o la aplicación web que utiliza este paquete.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-11831 changed 2026-12-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-76p7-773f-r4q5 changed 2026-12-01 | CC-BY-4.0 |
| NVD | CVE-2024-11831 changed 2026-11-26 | Public domain |