CVE-2024-11831
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
6.0 < 6.0.2 | affected | ||
| Red Hat | Red Hat Advanced Cluster Security 4.4 | 4.4.8-2 < * | unaffected |
| Red Hat | Red Hat Advanced Cluster Security 4.5 | 4.5.6-2 < * | unaffected |
| Red Hat | Red Hat Ceph Storage 7.1 | 2:18.2.1-381.el8cp < * | unaffected |
| Red Hat | Red Hat Ceph Storage 8.1 | 2:19.2.1-292.el9cp < * | unaffected |
| Red Hat | Red Hat Ceph Storage 9.0 | 2:20.1.0-144.el10cp < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8 | 0:8.0.112-1.el8_10 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 9 | 0:8.0.112-1.el9_5 < * | unaffected |
| Red Hat | RHODF-4.14-RHEL-9 | v4.14.18-2 < * | unaffected |
| Red Hat | RHODF-4.14-RHEL-9 | v4.14.18-3 < * | unaffected |
| Red Hat | RHODF-4.14-RHEL-9 | v4.14.18-2 < * | unaffected |
| Red Hat | RHODF-4.15-RHEL-9 | v4.15.14-2 < * | unaffected |
| Red Hat | RHODF-4.15-RHEL-9 | v4.15.14-2 < * | unaffected |
| Red Hat | RHODF-4.15-RHEL-9 | v4.15.14-2 < * | unaffected |
| Red Hat | RHODF-4.16-RHEL-9 | v4.16.10-4 < * | unaffected |
| Red Hat | RHODF-4.16-RHEL-9 | v4.16.10-4 < * | unaffected |
| Red Hat | RHODF-4.16-RHEL-9 | v4.16.10-3 < * | unaffected |
| Red Hat | RHODF-4.17-RHEL-9 | v4.17.7-2 < * | unaffected |
| Red Hat | RHODF-4.17-RHEL-9 | v4.17.7-2 < * | unaffected |
| Red Hat | RHODF-4.17-RHEL-9 | v4.17.7-2 < * | unaffected |
| Red Hat | RHODF-4.18-RHEL-9 | v4.18.2-8 < * | unaffected |
| Red Hat | RHODF-4.18-RHEL-9 | v4.18.2-7 < * | unaffected |
| Red Hat | RHODF-4.18-RHEL-9 | v4.18.2-8 < * | unaffected |
| Red Hat | Red Hat Ceph Storage 8 | 8 < * | unaffected |
| Red Hat | Red Hat Ceph Storage 9.0 | 1776359884 < * | unaffected |
| Red Hat | Red Hat OpenShift Pipelines 1.14.6 | v1.14.6-1744143767 < * | unaffected |
| Red Hat | Red Hat OpenShift Pipelines 1.15 | v1.15.3-1746939886 < * | unaffected |
| Red Hat | Red Hat OpenShift Pipelines 1.15 | v1.15.3-1746936251 < * | unaffected |
| Red Hat | Red Hat OpenShift Pipelines 1.16 | v1.16.4-1747983385 < * | unaffected |
| Red Hat | Red Hat OpenShift Pipelines 1.16 | v1.16.4-1747979846 < * | unaffected |
| Red Hat | Red Hat OpenShift Pipelines 1.17 | v1.17.2-1749452800 < * | unaffected |
| Red Hat | Red Hat OpenShift Pipelines 1.17 | v1.17.2-1750066936 < * | unaffected |
| Red Hat | Red Hat OpenShift Pipelines 1.18.0 | v1.18.1-1747749913 < * | unaffected |
| Red Hat | Red Hat OpenShift Pipelines 1.19 | v1.19.0-1752127853 < * | unaffected |
Weaknesses
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Workarounds
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.
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
References
- https://access.redhat.com/errata/RHBA-2025:0304
- https://access.redhat.com/errata/RHSA-2025:0381
- https://access.redhat.com/errata/RHSA-2025:10853
- https://access.redhat.com/errata/RHSA-2025:1334
- https://access.redhat.com/errata/RHSA-2025:1468
- https://access.redhat.com/errata/RHSA-2025:21068
- https://access.redhat.com/errata/RHSA-2025:21203
- https://access.redhat.com/errata/RHSA-2025:3870
- https://access.redhat.com/errata/RHSA-2025:4511
- https://access.redhat.com/errata/RHSA-2025:8059
- https://access.redhat.com/errata/RHSA-2025:8078
- https://access.redhat.com/errata/RHSA-2025:8233
- https://access.redhat.com/errata/RHSA-2025:8479
- https://access.redhat.com/errata/RHSA-2025:8512
- https://access.redhat.com/errata/RHSA-2025:8544
- https://access.redhat.com/errata/RHSA-2025:8551
- https://access.redhat.com/errata/RHSA-2025:9294
- https://access.redhat.com/errata/RHSA-2026:1536
- https://access.redhat.com/errata/RHSA-2026:2769
- https://access.redhat.com/errata/RHSA-2026:8568
- https://access.redhat.com/security/cve/CVE-2024-11831
- https://bugzilla.redhat.com/show_bug.cgi?id=2312579
- https://github.com/yahoo/serialize-javascript/commit/f27d65d3de42affe2aac14607066c293891cec4e
- https://github.com/yahoo/serialize-javascript/pull/173
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.