Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 11, 2025

This PR contains the following updates:

Package Change Age Confidence
serialize-javascript 3.1.0 -> 6.0.2 age confidence

GitHub Vulnerability Alerts

CVE-2024-11831

A flaw was found in npm-serialize-javascript. The vulnerability occurs because the serialize-javascript module does not properly sanitize certain inputs, such as regex or other JavaScript object types, allowing an attacker to inject malicious code. This code could be executed when deserialized by a web browser, causing Cross-site scripting (XSS) attacks. This issue is critical in environments where serialized data is sent to web clients, potentially compromising the security of the website or web application using this package.


Release Notes

yahoo/serialize-javascript (serialize-javascript)

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.


Configuration

📅 Schedule: Branch creation - "" in timezone US/Eastern, Automerge - At any time (no schedule defined).

🚦 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.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch 2 times, most recently from fe0c39f to dde1a25 Compare February 14, 2025 14:18
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch 4 times, most recently from 54e70b5 to 7ce87f4 Compare February 20, 2025 16:33
@renovate renovate bot changed the title fix(deps): update dependency serialize-javascript to v6 [security] fix(deps): update dependency serialize-javascript to v6 [security] - autoclosed Feb 21, 2025
@renovate renovate bot closed this Feb 21, 2025
@renovate renovate bot deleted the renovate/npm-serialize-javascript-vulnerability branch February 21, 2025 20:59
@renovate renovate bot changed the title fix(deps): update dependency serialize-javascript to v6 [security] - autoclosed fix(deps): update dependency serialize-javascript to v6 [security] Feb 22, 2025
@renovate renovate bot reopened this Feb 22, 2025
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 6b40e92 to 7ce87f4 Compare February 22, 2025 00:56
@renovate renovate bot changed the title fix(deps): update dependency serialize-javascript to v6 [security] Update dependency serialize-javascript to v6 [SECURITY] Feb 24, 2025
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch 4 times, most recently from 72dffc3 to 890b26e Compare February 27, 2025 15:47
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch 5 times, most recently from 0d77211 to d48e859 Compare March 7, 2025 04:45
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch 5 times, most recently from 41c9ae2 to db303e8 Compare March 18, 2025 00:40
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch 3 times, most recently from f405bb4 to 0e16262 Compare March 26, 2025 16:21
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch 19 times, most recently from c1d82ef to cac690e Compare October 2, 2025 06:48
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch 7 times, most recently from 255716f to c4ecdb7 Compare October 7, 2025 18:51
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from c4ecdb7 to 9901ef9 Compare October 7, 2025 19:03
@cp-at-mit cp-at-mit merged commit 8d34cbd into main Oct 7, 2025
8 checks passed
@odlbot odlbot mentioned this pull request Oct 14, 2025
18 tasks
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.

2 participants