{"id":"CVE-2024-11831","summary":"Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript","details":"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.","aliases":["GHSA-76p7-773f-r4q5"],"modified":"2026-11-27T21:48:37.803685177Z","published":"2025-02-10T15:27:46.732Z","related":["ALSA-2025:0381"],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/11xxx/CVE-2024-11831.json","unresolved_ranges":[{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"InverseAffectedRanges","range":[{"fixed":"4.4.8-2"},{"fixed":"4.5.6-2"},{"fixed":"2:18.2.1-381.el8cp"},{"fixed":"2:18.2.1-381.el8cp"},{"fixed":"2:19.2.1-292.el9cp"},{"fixed":"2:20.1.0-144.el10cp"},{"fixed":"2:20.1.0-144.el10cp"},{"fixed":"v4.14.18-2"},{"fixed":"v4.14.18-3"},{"fixed":"v4.14.18-2"},{"fixed":"v4.15.14-2"},{"fixed":"v4.15.14-2"},{"fixed":"v4.15.14-2"},{"fixed":"v4.16.10-4"},{"fixed":"v4.16.10-4"},{"fixed":"v4.16.10-3"},{"fixed":"v4.17.7-2"},{"fixed":"v4.17.7-2"},{"fixed":"v4.17.7-2"},{"fixed":"v4.18.2-8"},{"fixed":"v4.18.2-7"},{"fixed":"v4.18.2-8"},{"fixed":"1791452477"},{"fixed":"8"},{"fixed":"1787550654"},{"fixed":"1776359884"},{"fixed":"v1.14.6-1744143767"},{"fixed":"v1.15.3-1746939886"},{"fixed":"v1.15.3-1746936251"},{"fixed":"v1.16.4-1747983385"},{"fixed":"v1.16.4-1747979846"},{"fixed":"v1.17.2-1749452800"},{"fixed":"v1.17.2-1750066936"},{"fixed":"v1.18.1-1747749913"},{"fixed":"v1.19.0-1752127853"}]}]}]},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://access.redhat.com/jbossnetwork/restricted/listSoftware.html"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHBA-2025:0304"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:0381"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10853"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:1334"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:1468"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:21068"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:21203"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:3870"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:4511"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:8059"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:8078"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:8233"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:8479"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:8512"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:8544"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:8551"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:9294"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:1536"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:2769"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:62115"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:83548"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:8568"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-11831"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/11xxx/CVE-2024-11831.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-11831"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2312579"},{"type":"FIX","url":"https://github.com/yahoo/serialize-javascript/commit/f27d65d3de42affe2aac14607066c293891cec4e"},{"type":"FIX","url":"https://github.com/yahoo/serialize-javascript/pull/173"},{"type":"PACKAGE","url":"https://github.com/yahoo/serialize-javascript"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yahoo/serialize-javascript","events":[{"introduced":"3302c443cd949750d4407a67ab869f8290ea3762"},{"fixed":"b71ec23841d7cf30847d3071d9da38ee0b397fc8"},{"fixed":"f27d65d3de42affe2aac14607066c293891cec4e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"6.0"},{"fixed":"6.0.2"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"f27d65d3de42affe2aac14607066c293891cec4e"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v6.0.1","v6.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-11831.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}