Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript
Exact source revision recorded 5 Nov 2026 12:36:20 UTC. It does not establish the source's current position. Latest evidence.
cve-program · CVE-2024-11831
PublishedA 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.
- Source published
- 10 Feb 2025 15:27:46 UTC
- Source modified
- 5 Nov 2026 11:44:53 UTC
- Observed here
- 5 Nov 2026 12:36:20 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: cve-program · CVE Program Terms of Use. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS 3.1 · 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N