Skip to content

Update dependency serialize-javascript to v7#241

Open
mend-for-github-com[bot] wants to merge 1 commit intoalphafrom
whitesource-remediate/serialize-javascript-7.x
Open

Update dependency serialize-javascript to v7#241
mend-for-github-com[bot] wants to merge 1 commit intoalphafrom
whitesource-remediate/serialize-javascript-7.x

Conversation

@mend-for-github-com
Copy link
Copy Markdown

@mend-for-github-com mend-for-github-com bot commented Apr 1, 2026

This PR contains the following updates:

Package Type Update Change
serialize-javascript dependencies major ^1.5.0^7.0.0

By merging this PR, the issue #70 will be automatically resolved and closed:

Severity CVSS Score Vulnerability Reachability
High High 8.1 CVE-2020-7660

Reachable

Medium Medium 5.9 CVE-2026-34043

Reachable

Medium Medium 5.4 CVE-2024-11831

Reachable

Medium Medium 4.2 CVE-2019-16769

Unreachable


Release Notes

yahoo/serialize-javascript (serialize-javascript)

v7.0.5

Compare Source

Fixes
  • Improve robustness and validation for array-like object serialization.
  • Fix an issue where certain object structures could lead to excessive CPU usage.

For more details, please see GHSA-qj8w-gfj5-8c6v.

v7.0.4

Compare Source

What's Changed

Full Changelog: yahoo/serialize-javascript@v7.0.3...v7.0.4

v7.0.3

Compare Source


v7.0.2

Compare Source

What's Changed

Full Changelog: yahoo/serialize-javascript@v7.0.1...v7.0.2

v7.0.1

Compare Source

What's Changed

New Contributors

Full Changelog: yahoo/serialize-javascript@v7.0.0...v7.0.1

v7.0.0

Compare Source

Breaking Changes

  • requires Node.js v20+

What's Changed

New Contributors

Full Changelog: yahoo/serialize-javascript@v6.0.2...v7.0.0

v6.0.2

Compare Source

v6.0.1

Compare Source

What's Changed

New Contributors

Full Changelog: yahoo/serialize-javascript@v6.0.0...v6.0.1

v6.0.0

Compare Source

Changelog

  • Add support for URL's (#​123)
  • Bump mocha from 9.0.0 to 9.0.1 (#​124)
  • Bump mocha from 8.4.0 to 9.0.0 (#​121)
  • Update Node.js CI matrix (#​122)
  • Bump mocha from 8.3.2 to 8.4.0 (#​120)
  • Bump lodash from 4.17.19 to 4.17.21 (#​119)
  • Bump y18n from 4.0.0 to 4.0.1 (#​116)
  • Bump chai from 4.3.3 to 4.3.4 (#​115)
  • Bump mocha from 8.3.1 to 8.3.2 (#​114)
  • Bump mocha from 8.3.0 to 8.3.1 (#​113)
  • Bump chai from 4.3.1 to 4.3.3 (#​112)
  • Bump chai from 4.2.0 to 4.3.1 (#​111)
  • Bump mocha from 8.2.1 to 8.3.0 (#​109)
  • Bump mocha from 8.1.3 to 8.2.1 (#​105)
  • Drop Travis CI settings (#​100)
  • Change default branch name to main (#​99)
  • GitHub Aactions (#​98)

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.

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

serialize({u: new URL("http://example.com/")}); // '{"u":new URL("http://example.com/")}'

Thank you @​rrdelaney for this release.

v5.0.1

Compare Source

Changelog

  • Exclude .vscode and .github directories from package (#​97)

v5.0.0

Compare Source

Changelog

  • Bump mocha from 8.1.2 to 8.1.3 (#​96)
  • Support sparse arrays (#​95)
  • Bump mocha from 8.1.1 to 8.1.2 (#​94)
  • Bump mocha from 8.1.0 to 8.1.1 (#​92)
  • Create Dependabot config file (#​91)
  • Bump mocha from 8.0.1 to 8.1.0 (#​90)
  • Bump lodash from 4.17.15 to 4.17.19 (#​89)
  • Bump mocha from 7.2.0 to 8.0.1 (#​88)

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.

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

var a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
delete a[0];
a.length = 3;
a[5] = 'wat';
serialize(a) // 'Array.prototype.slice.call({"1":2,"2":3,"5":"wat","length":6})'

Thank you @​victorporof for this release.

v4.0.0

Compare Source

Changelog

  • Bump nyc from 15.0.1 to 15.1.0 (#​85)
  • support for bigint (#​80)

Behavior changes for BigInt

It serializes BigInt values as follows since this version. The result of serialization may be changed if you are passing BigInt values into the serialize-javascript.

v4.x:

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

serialize({big: BigInt('10')}); // '{"big":BigInt("10")}'

v3.x:

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

serialize({big: BigInt('10')}); // throws error

Thank you @​mum-never-proud for this release.

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

  • Revert #​54 for breaking changes (see: #​57)
  • Bump mocha from 5.2.0 to 6.2.0 (#​56)

v1.9.0

Compare Source

v1.8.0

Compare Source


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

@mend-for-github-com mend-for-github-com bot added the security fix Security fix generated by Mend label Apr 1, 2026
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/serialize-javascript-7.x branch from b0f3afa to 512e9f0 Compare April 10, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security fix Security fix generated by Mend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants