Update dependency serialize-javascript to v7 [SECURITY] - #5489
Open
renovate[bot] wants to merge 1 commit into
Open
Update dependency serialize-javascript to v7 [SECURITY]#5489renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
from
March 28, 2026 18:33
5593ae9 to
8a73e10
Compare
renovate
Bot
deleted the
renovate/npm-serialize-javascript-vulnerability
branch
March 30, 2026 18:51
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
6 times, most recently
from
April 1, 2026 15:15
e7e0e0f to
2fa8abc
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
5 times, most recently
from
April 15, 2026 15:02
393c3a9 to
ee00e5c
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
2 times, most recently
from
April 16, 2026 15:54
7b1a017 to
d8a27ab
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
4 times, most recently
from
May 7, 2026 14:16
5d83d72 to
4539116
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
from
May 8, 2026 11:30
6a7c133 to
4539116
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
3 times, most recently
from
June 15, 2026 11:21
db67525 to
9e75a5c
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
3 times, most recently
from
July 2, 2026 14:09
7a93e83 to
743ccb2
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
2 times, most recently
from
July 10, 2026 22:35
4fcecc2 to
cb6ef99
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
from
July 14, 2026 00:29
cb6ef99 to
83e50fc
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
3 times, most recently
from
July 27, 2026 13:16
a574865 to
33b91df
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
from
August 6, 2026 14:25
33b91df to
d019de1
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
2 times, most recently
from
August 12, 2026 17:29
d019de1 to
39f4db4
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
4 times, most recently
from
August 18, 2026 17:06
452be69 to
529960f
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
from
August 21, 2026 12:58
529960f to
a5131ed
Compare
renovate
Bot
force-pushed
the
renovate/npm-serialize-javascript-vulnerability
branch
from
August 21, 2026 19:48
a5131ed to
f6cce99
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.1.0→^7.0.0Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString()
GHSA-5c6j-r48x-rmvq
More information
Details
Impact
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 serialized string is later evaluated (viaeval,new Function, or<script>tags), the injected code executes.Patches
The fix has been published in version 7.0.3. https://github.com/yahoo/serialize-javascript/releases/tag/v7.0.3
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
yahoo/serialize-javascript (serialize-javascript)
v7.0.3Compare Source
2e609d042b7cdbv7.0.2Compare Source
What's Changed
Full Changelog: yahoo/serialize-javascript@v7.0.1...v7.0.2
v7.0.1Compare Source
What's Changed
New Contributors
Full Changelog: yahoo/serialize-javascript@v7.0.0...v7.0.1
v7.0.0Compare Source
Breaking Changes
What's Changed
New Contributors
Full Changelog: yahoo/serialize-javascript@v6.0.2...v7.0.0
v6.0.2Compare Source
f27d65d02499c00d88527e2a3a915a1fa64v6.0.1Compare Source
What's Changed
New Contributors
Full Changelog: yahoo/serialize-javascript@v6.0.0...v6.0.1
v6.0.0Compare Source
Changelog
Behavior changes for URL objects
It serializes URL objects as follows since this version. The result of serialization may be changed if you are passing URL object values into the serialize-javascript.
Thank you @rrdelaney for this release.
v5.0.1Compare Source
Changelog
v5.0.0Compare Source
Changelog
Behavior changes for sparse arrays
It serializes sparse arrays as follows since this version. The result of serialization may be changed if you are passing sparse arrays values into the serialize-javascript.
Thank you @victorporof for this release.
v4.0.0Compare Source
Changelog
Behavior changes for BigInt
It serializes
BigIntvalues as follows since this version. The result of serialization may be changed if you are passingBigIntvalues into the serialize-javascript.v4.x:
v3.x:
Thank you @mum-never-proud for this release.
Configuration
📅 Schedule: (in timezone US/Eastern)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.