PT-2025-6048 · Npm+3 · Npm-Serialize-Javascript+3

Cebarks

·

Published

2024-09-16

·

Updated

2026-02-17

·

CVE-2024-11831

CVSS v3.1

5.4

Medium

AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions npm-serialize-javascript versions up to 6.0.1
Description 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.
Recommendations For npm-serialize-javascript versions up to 6.0.1, update to a version higher than 6.0.1 to resolve the issue. As a temporary workaround, consider disabling the use of the serialize-javascript module until a patch is available. Restrict access to sensitive data and minimize the use of serialized data in web clients to reduce the risk of exploitation.

Fix

XSS

Weakness Enumeration

Related Identifiers

CESA-2025_0381
CVE-2024-11831
GHSA-76P7-773F-R4Q5
RHSA-2025:0381
RHSA-2025:21068
RHSA-2025_0381
RHSA-2026:1536
RHSA-2026:2769

Affected Products

Centos
Debian
Red Hat
Npm-Serialize-Javascript