Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency serialize-javascript to v3 [security] - autoclosed #31

Closed

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Dec 14, 2019

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
serialize-javascript 1.4.0 -> 3.1.0 age adoption passing confidence

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\"@&#8203;__R-<UID>-0__@&#8203;"} was serialized as {"foo": /1"/, "bar": "a\/1"/}, which allows an attacker to escape the bar key. This requires the attacker to control the values of both foo and bar 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

v3.1.0

Compare Source

  • Bump mocha from 7.1.2 to 7.2.0 (#​83)
  • Bump mocha from 7.1.1 to 7.1.2 (#​82)
  • Bump nyc from 15.0.0 to 15.0.1 (#​81)
  • Don't replace regex / function placeholders within string literals (#​79)
  • [Security] Bump minimist from 1.2.0 to 1.2.5 (#​78)
  • Bump mocha from 7.1.0 to 7.1.1 (#​77)
  • Bump mocha from 7.0.1 to 7.1.0 (#​74)
  • Update example in README (#​73)

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 passing Infinity values into the serialize-javascript.

v3.x

const serialize = require('serialize-javascript');

serialize({inf: Infinity}); // '{"inf":Infinity}'

v2.x

const serialize = require('serialize-javascript');

serialize({inf: Infinity}); // '{"inf":null}'

v2.1.2

Compare Source

v2.1.1

Compare Source

  • Fix regular expressions Cross-Site Scripting (XSS) vulnerability (see security advisory)
  • Migrate to nyc from istanbul

v2.1.0

Compare Source

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 passing undefined values into the serialize-javascript.

v2.x

const serialize = require('serialize-javascript');

serialize({undef: undefined}); // '{"undef":undefined}'

v1.x

const serialize = require('serialize-javascript');

serialize({undef: undefined}); // '{}'

v1.9.1

Compare Source

v1.9.0

Compare Source

v1.8.0

Compare Source

v1.7.0

Compare Source

Please note that serialization for ES6 Sets & Maps requires support for Array.from (not available in IE or Node < 0.12), or an Array.from polyfill.

v1.6.1

Compare Source

v1.6.0

Compare Source

v1.5.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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 599e706 to 148de3b Compare August 21, 2020 15:04
@renovate renovate bot changed the title Update dependency serialize-javascript to v2 [SECURITY] Update dependency serialize-javascript to v3 [SECURITY] Aug 21, 2020
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 148de3b to 20b32e2 Compare October 29, 2020 16:27
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 20b32e2 to 78387d8 Compare September 25, 2022 20:51
@renovate renovate bot changed the title Update dependency serialize-javascript to v3 [SECURITY] fix(deps): update dependency serialize-javascript to v3 [security] Mar 18, 2023
@renovate renovate bot changed the title fix(deps): update dependency serialize-javascript to v3 [security] fix(deps): update dependency serialize-javascript to v3 [security] - autoclosed May 28, 2023
@renovate renovate bot closed this May 28, 2023
@renovate renovate bot deleted the renovate/npm-serialize-javascript-vulnerability branch May 28, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants