[pkg-vuln] GHSA-5c6j-r48x-rmvq in serialize-javascript@6.0.2 #1368
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: HIGH
Package:
serialize-javascript@6.0.2Fixed in:
7.0.3Impact
The serialize-javascript npm package (versions <= 7.0.2) contains a code injection vulnerability. It is an incomplete fix for CVE-2020-7660.
While
RegExp.sourceis sanitized,RegExp.flagsis interpolated directly into the generated output without escaping. A similar issue exists inDate.prototype.toISOString().If an attacker can control the input object passed to
serialize(), they can inject malicious JavaScript via the flags property of a RegExp object. When the serializeReference: https://nvd.nist.gov/vuln/detail/GHSA-5c6j-r48x-rmvq