CVE-2024-11831

high
Published 2025-01-14 · Modified 2026-04-17
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS v2
VIR risk
8.0

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-11831

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2024-11831.html

vendor Authored 2026-05-27

Vendor advisory: redhat — https://access.redhat.com/errata/RHBA-2025:0304

OS impact

OSVersionStatusFixed in
redhat rhel9fixed
suse slesaffected
debian debianbookwormfixed6.0.0-2+deb12u1
debian debianbullseyefixed0
debian debianforkyfixed6.0.2-1
debian debiansidfixed6.0.2-1
debian debiantrixiefixed6.0.2-1

Package impact

EcosystemPackageVulnerableFixed
npm npmserialize-javascript>=6.0.0,<6.0.26.0.2

References

Verify integrity in audit chain (admin only). AS-IS.