fix(deps): update dependency serialize-javascript to v3 [security] #145
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:
1.7.0
->3.1.0
GitHub Vulnerability Alerts
CVE-2019-16769
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.
CVE-2020-7660
serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function "deleteFunctions" within "index.js".
An object such as
{"foo": /1"/, "bar": "a\"@​__R-<UID>-0__@​"}
was serialized as{"foo": /1"/, "bar": "a\/1"/}
, which allows an attacker to escape thebar
key. This requires the attacker to control the values of bothfoo
andbar
and guess the value of<UID>
. The UID has a keyspace of approximately 4 billion making it a realistic network attack.Release Notes
yahoo/serialize-javascript (serialize-javascript)
v3.1.0
Compare Source
Note: the
randombytes
has been added to the dependency package to improve the generation of UIDs. Check the #22 for more information. Thanks to @JordanMilne and @Siebes for this change.v3.0.0
Compare Source
Behavior changes for
Infinity
It serializes
Infinity
values as follows since this version. The result of serialization may be changed if you are passingInfinity
values into theserialize-javascript
.v3.x
v2.x
v2.1.2
Compare Source
v2.1.1
Compare Source
v2.1.0
Compare Source
ignoreFunction
option (@realdennis, #58)v2.0.0
Compare Source
Behavior changes for
undefined
It serializes
undefined
values as follows since this version. The result of serialization may be changed if you are passingundefined
values into theserialize-javascript
.v2.x
v1.x
v1.9.1
Compare Source
v1.9.0
Compare Source
v1.8.0
Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.