GHSA-76p7-773f-r4q5

Suggest an improvement
Source
https://github.com/advisories/GHSA-76p7-773f-r4q5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-76p7-773f-r4q5/GHSA-76p7-773f-r4q5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-76p7-773f-r4q5
Aliases
Related
Published
2025-02-10T18:30:47Z
Modified
2025-02-21T20:19:17Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Cross-site Scripting (XSS) in serialize-javascript
Details

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.

Database specific
{
    "nvd_published_at": "2025-02-10T16:15:37Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-02-10T21:19:59Z"
}
References

Affected packages

npm / serialize-javascript

Package

Name
serialize-javascript
View open source insights on deps.dev
Purl
pkg:npm/serialize-javascript

Affected ranges

Type
SEMVER
Events
Introduced
6.0.0
Fixed
6.0.2