CVE-2024-11831
npm-serialize-javascript XSS Injection
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.
INFO
Published Date :
Feb. 10, 2025, 4:15 p.m.
Last Modified :
May 6, 2025, 8:15 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
2.7
Exploitability Score :
2.3
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-11831
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-11831
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-11831
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 06, 2025
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2025:4511 -
CVE Modified by [email protected]
Apr. 24, 2025
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHBA-2025:0304 -
CVE Modified by [email protected]
Feb. 13, 2025
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2025:1468 -
CVE Modified by [email protected]
Feb. 11, 2025
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2025:1334 -
New CVE Received by [email protected]
Feb. 10, 2025
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Added CWE CWE-79 Added Reference https://access.redhat.com/security/cve/CVE-2024-11831 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2312579 Added Reference https://github.com/yahoo/serialize-javascript/commit/f27d65d3de42affe2aac14607066c293891cec4e Added Reference https://github.com/yahoo/serialize-javascript/pull/173
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-11831
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-11831
weaknesses.