CVE-2024-11831

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

Published Feb 10, 2025 CVSS 3.1 · 5.4 Medium EPSS 1.1% KEV · Not listed
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.

Remediation

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-4485 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.
Github GHSA Github GHSA GHSA-76p7-773f-r4q5 Cross-site Scripting (XSS) in serialize-javascript
History
Type Values Removed Values Added
First Time appeared Redhat 3scale
Redhat camel K
Redhat jboss Bpms
CPEs cpe:/a:redhat:integration:1
cpe:/a:redhat:jboss_enterprise_bpms_platform:7
cpe:/a:redhat:red_hat_3scale_amp:2
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:3scale:2.13
cpe:/a:redhat:camel_k:1
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:jboss_bpms:7
Vendors & Products Redhat integration
Redhat jboss Enterprise Bpms Platform
Redhat red Hat 3scale Amp
Redhat 3scale
Redhat camel K
Redhat jboss Bpms
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_lightspeed cpe:/a:redhat:openshift_lightspeed:1
Type Values Removed Values Added
CPEs cpe:/o:redhat:rhivos:1
Vendors & Products Redhat rhivos
Type Values Removed Values Added
First Time appeared Redhat rhivos
CPEs cpe:/o:redhat:rhivos:1
Vendors & Products Redhat rhivos
Type Values Removed Values Added
CPEs cpe:/a:redhat:ceph_storage:7.1::el8
cpe:/a:redhat:ceph_storage:7.1::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:ceph_storage:9.0::el10
cpe:/a:redhat:ceph_storage:9.0::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_devspaces:3: cpe:/a:redhat:openshift_devspaces:3
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:8::appstream
cpe:/a:redhat:enterprise_linux:8::crb
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_pipelines:1.14::el8
cpe:/a:redhat:openshift_pipelines:1.16::el8
cpe:/a:redhat:openshift_pipelines:1.18::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_pipelines:1.15::el8
cpe:/a:redhat:openshift_pipelines:1.17::el8
cpe:/a:redhat:openshift_pipelines:1.19::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:ceph_storage:8.1::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:ceph_storage:9
Type Values Removed Values Added
CPEs cpe:/o:redhat:rhivos:1
Vendors & Products Redhat rhivos
Type Values Removed Values Added
First Time appeared Redhat rhivos
CPEs cpe:/o:redhat:rhivos:1
Vendors & Products Redhat rhivos
Type Values Removed Values Added
First Time appeared Redhat ceph Storage
CPEs cpe:/a:redhat:ceph_storage:7
cpe:/a:redhat:ceph_storage:8
Vendors & Products Redhat ceph Storage
Type Values Removed Values Added
First Time appeared Redhat apache Camel Hawtio
CPEs cpe:/a:redhat:rhboac_hawtio:4 cpe:/a:redhat:apache_camel_hawtio:4
Vendors & Products Redhat rhboac Hawtio
Redhat apache Camel Hawtio
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_data_foundation:4.14::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_data_foundation:4.15::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_data_foundation:4.16::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_data_foundation:4.17::el9
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_data_foundation:4 cpe:/a:redhat:openshift_data_foundation:4.18::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:9
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/a:redhat:enterprise_linux:9::crb
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:migration_toolkit_applications:7
Vendors & Products Redhat build Keycloak
Redhat migration Toolkit Applications
Type Values Removed Values Added
CPEs cpe:/a:redhat:discovery:1.0::el8 cpe:/a:redhat:discovery:1
Type Values Removed Values Added
CPEs cpe:/a:redhat:advanced_cluster_security:4.4::el8
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:advanced_cluster_security:4.5::el8
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript
First Time appeared Redhat
Redhat acm
Redhat advanced Cluster Security
Redhat ansible Automation Platform
Redhat build Keycloak
Redhat cryostat
Redhat discovery
Redhat enterprise Linux
Redhat integration
Redhat jboss Data Grid
Redhat jboss Enterprise Application Platform
Redhat jboss Enterprise Bpms Platform
Redhat jboss Fuse
Redhat jbosseapxp
Redhat logging
Redhat migration Toolkit Applications
Redhat migration Toolkit Virtualization
Redhat openshift
Redhat openshift Ai
Redhat openshift Data Foundation
Redhat openshift Devspaces
Redhat openshift Distributed Tracing
Redhat openshift Lightspeed
Redhat openshift Pipelines
Redhat optaplanner
Redhat quay
Redhat red Hat 3scale Amp
Redhat red Hat Single Sign On
Redhat rhboac Hawtio
Redhat rhdh
Redhat rhel Dotnet
Redhat satellite
Redhat serverless
Redhat service Mesh
Redhat service Registry
Redhat trusted Profile Analyzer
Weaknesses CWE-79
CPEs cpe:/a:redhat:acm:2
cpe:/a:redhat:advanced_cluster_security:4
cpe:/a:redhat:ansible_automation_platform:2
cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:cryostat:3
cpe:/a:redhat:discovery:1.0::el8
cpe:/a:redhat:integration:1
cpe:/a:redhat:jboss_data_grid:8
cpe:/a:redhat:jboss_enterprise_application_platform:7
cpe:/a:redhat:jboss_enterprise_application_platform:8
cpe:/a:redhat:jboss_enterprise_bpms_platform:7
cpe:/a:redhat:jboss_fuse:7
cpe:/a:redhat:jbosseapxp
cpe:/a:redhat:logging:5
cpe:/a:redhat:migration_toolkit_applications:7
cpe:/a:redhat:migration_toolkit_virtualization:2
cpe:/a:redhat:openshift:3.11
cpe:/a:redhat:openshift:4
cpe:/a:redhat:openshift_ai
cpe:/a:redhat:openshift_data_foundation:4
cpe:/a:redhat:openshift_devspaces:3:
cpe:/a:redhat:openshift_distributed_tracing:3
cpe:/a:redhat:openshift_lightspeed
cpe:/a:redhat:openshift_pipelines:1
cpe:/a:redhat:optaplanner:::el6
cpe:/a:redhat:quay:3
cpe:/a:redhat:red_hat_3scale_amp:2
cpe:/a:redhat:red_hat_single_sign_on:7
cpe:/a:redhat:rhboac_hawtio:4
cpe:/a:redhat:rhdh:1
cpe:/a:redhat:rhel_dotnet:6.0
cpe:/a:redhat:satellite:6
cpe:/a:redhat:serverless:1
cpe:/a:redhat:service_mesh:2
cpe:/a:redhat:service_registry:2
cpe:/a:redhat:trusted_profile_analyzer:1
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat acm
Redhat advanced Cluster Security
Redhat ansible Automation Platform
Redhat build Keycloak
Redhat cryostat
Redhat discovery
Redhat enterprise Linux
Redhat integration
Redhat jboss Data Grid
Redhat jboss Enterprise Application Platform
Redhat jboss Enterprise Bpms Platform
Redhat jboss Fuse
Redhat jbosseapxp
Redhat logging
Redhat migration Toolkit Applications
Redhat migration Toolkit Virtualization
Redhat openshift
Redhat openshift Ai
Redhat openshift Data Foundation
Redhat openshift Devspaces
Redhat openshift Distributed Tracing
Redhat openshift Lightspeed
Redhat openshift Pipelines
Redhat optaplanner
Redhat quay
Redhat red Hat 3scale Amp
Redhat red Hat Single Sign On
Redhat rhboac Hawtio
Redhat rhdh
Redhat rhel Dotnet
Redhat satellite
Redhat serverless
Redhat service Mesh
Redhat service Registry
Redhat trusted Profile Analyzer
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 5, 2026, 11:44 AM
Reserved
Nov 26, 2024, 6:56 PM
Status
Deferred
Published
Feb 10, 2025, 4:15 PM
Modified
Nov 5, 2026, 12:17 PM
Severity
Moderate
Public date
Sep 16, 2024, 12:00 AM