
CVE catalog
CVE-2024-11831
node-serialize-javascript: CVE-2024-11831
- Severity
- Medium · CVSS 5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.12% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-serialize-javascript | sid | 7.1.4+~5.0.4-1 | fixed |
| Debian | node-serialize-javascript | forky | 7.1.4+~5.0.4-1 | fixed |
| Debian | node-serialize-javascript | trixie | 6.0.2-1 | fixed |
| Debian | node-serialize-javascript | bookworm | 6.0.0-2+deb12u1 | fixed |
| Npm | serialize-javascript | Not reported | 6.0.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-serialize-javascript | source | sid | 6.0.2-1 | not yet assigned | Not reported | [1095767] |
| Debian | node-serialize-javascript | source | forky | 6.0.2-1 | not yet assigned | Not reported | [1095767] |
| Debian | node-serialize-javascript | source | trixie | 6.0.2-1 | not yet assigned | Not reported | [1095767] |
| Debian | node-serialize-javascript | source | bookworm | 6.0.0-2+deb12u1 | not yet assigned | Not reported | [1095767] |
| Npm | serialize-javascript | npm | Not reported | 6.0.2 | Not reported | GHSA-76P7-773F-R4Q5 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-serialize-javascript]Fixed
Details (2)
6.0.0-2+deb12u1· all · bookwormFixed · Fixed:
6.0.0-2+deb12u1dsa · node-serialize-javascript · debian · bookworm; dsa · node-serialize-javascript · debian · 12
6.0.0-2+deb12u1· all · bookwormFixed · Fixed:
6.0.0-2+deb12u1dsa · node-serialize-javascript · debian · bookworm; dsa · node-serialize-javascript · debian · 12
[Debian 13 (Trixie)]
- [node-serialize-javascript]Fixed
Details (2)
6.0.2-1· all · trixieFixed · Fixed:
6.0.2-1dsa · node-serialize-javascript · debian · 13
6.0.2-1· all · trixieFixed · Fixed:
6.0.2-1dsa · node-serialize-javascript · debian · 13
Observed:
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:62115]
- [https://access.redhat.com/errata/RHSA-2026:83548]
- [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://ftp.suse.com/pub/projects/security/csaf/rhsa-2025_0381.json]
- [https://github.com/advisories/GHSA-76p7-773f-r4q5]
- [https://github.com/yahoo/serialize-javascript/commit/f27d65d3de42affe2aac14607066c293891cec4e]
- [https://github.com/yahoo/serialize-javascript/pull/173]
- [https://nvd.nist.gov/vuln/detail/CVE-2024-11831]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-11831]
- [https://osv.dev/vulnerability/GHSA-76p7-773f-r4q5]
- [https://security-tracker.debian.org/tracker/CVE-2024-11831]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-11831.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2025/wid-sec-w-2025-2584.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]