CVE-2024-11831
mediumA flaw was found in npm-serialize-javascript.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://access.redhat.com/errata/RHBA-2025:0304 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:0381 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:10853 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:1334 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:1468 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:21068 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:21203 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:3870 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:4511 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:8059 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:8078 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:8233 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:8479 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:8512 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:8544 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:8551 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2025:9294 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:1536 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:2769 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:62115 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:83548 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:8568 secalert@redhat.com
- https://access.redhat.com/security/cve/CVE-2024-11831 secalert@redhat.com
- https://bugzilla.redhat.com/show_bug.cgi?id=2312579 secalert@redhat.com
- https://github.com/yahoo/serialize-javascript/commit/f27d65d3de42affe2aac14607066c293891ce... secalert@redhat.com
