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.0GitHub Vulnerability Alerts
CVE-2019-16769
Versions of
serialize-javascriptprior 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 thebarkey. This requires the attacker to control the values of bothfooandbarand 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.0Compare Source
Note: the
randombyteshas 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.0Compare Source
Behavior changes for
InfinityIt serializes
Infinityvalues as follows since this version. The result of serialization may be changed if you are passingInfinityvalues into theserialize-javascript.v3.x
v2.x
v2.1.2Compare Source
v2.1.1Compare Source
v2.1.0Compare Source
ignoreFunctionoption (@realdennis, #58)v2.0.0Compare Source
Behavior changes for
undefinedIt serializes
undefinedvalues as follows since this version. The result of serialization may be changed if you are passingundefinedvalues into theserialize-javascript.v2.x
v1.x
v1.9.1Compare Source
v1.9.0Compare Source
v1.8.0Compare 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.