GHSA-h9rv-jmmf-4pgx

Suggest an improvement
Source
https://github.com/advisories/GHSA-h9rv-jmmf-4pgx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/12/GHSA-h9rv-jmmf-4pgx/GHSA-h9rv-jmmf-4pgx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-h9rv-jmmf-4pgx
Aliases
Published
2019-12-05T18:44:37Z
Modified
2023-11-08T04:01:20.904735Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
Summary
Cross-Site Scripting in serialize-javascript
Details

Versions of serialize-javascript prior to 2.1.1 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize serialized regular expressions. This vulnerability does not affect Node.js applications.

Recommendation

Upgrade to version 2.1.1 or later.

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
0Unknown introduced version / All previous versions are affected
Fixed
2.1.1