CVE-2024-11831
Cross-site Scripting (XSS) in serialize-javascript
5.4
MEDIUM
CVSS 3.1
EPSS 1.1%
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.
How to fix CVE-2024-11831
To remediate CVE-2024-11831, upgrade the affected package to a fixed version below.
- —upgrade to 6.0.0-2+deb12u1 or later
- —upgrade to 6.0.2 or later
Is CVE-2024-11831 being exploited?
Low — EPSS is 1.1%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 6.0.0-2+deb12u1
- >= 6.0.0, < 6.0.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |