CVE-2024-11831: Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript
Vulnerability summary
CVE-2024-11831 is a medium (CVSS 5.4) vulnerability in node-serialize-javascript. EPSS estimates a 1.12% chance of exploitation in the next 30 days, higher than 66.2% of scored vulnerabilities.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 2Timeline
- 10-02-2025PublishedVulnerability first disclosed.
- 01-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
1.12%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.12% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard19 products
- arangodb-3.11< 3.11.14.5-r4
- arangodb-3.12< 3.12.9.4-r9
- drupal-11.3< 11.3.13-r3
- opensearch-dashboards-2< 2.19.3-r0 | < 2.19.4-r0
- opensearch-dashboards-2-fips< 2.19.0-r0
Debian1 product
- node-serialize-javascript< 6.0.0-2+deb12u1 | < 6.0.2-1
Npm1 product
- serialize-javascript≥ 6.0.0, < 6.0.2
Ubuntu1 product
- node-serialize-javascriptAll versions (No fix recorded)
4 vendors · 22 products