~ / search / GHSA-76p7-773f-r4q5

GHSA-76p7-773f-r4q5

Cross-site Scripting (XSS) in serialize-javascript

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-11831

Packages

EcosystemPackageAffectedFixed in
npm serialize-javascript >= 6.0.0, < 6.0.2 6.0.2

Details

As written in the advisory (Markdown source, shown as plain text).

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

External links from the advisory. They lead to third-party sites.