CVE-2024-11831

medium

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.

References

https://github.com/yahoo/serialize-javascript/pull/173

https://github.com/yahoo/serialize-javascript/commit/f27d65d3de42affe2aac14607066c293891cec4e

https://bugzilla.redhat.com/show_bug.cgi?id=2312579

https://access.redhat.com/security/cve/CVE-2024-11831

https://access.redhat.com/errata/RHSA-2025:1468

https://access.redhat.com/errata/RHSA-2025:1334

Details

Source: Mitre, NVD

Published: 2025-02-10

Updated: 2025-02-13

Risk Information

CVSS v2

Base Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 5.4

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Severity: Medium