Skip to content

chore(deps): update dependency serialize-javascript to v7 [security]#262

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-serialize-javascript-vulnerability
Open

chore(deps): update dependency serialize-javascript to v7 [security]#262
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-serialize-javascript-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Feb 20, 2025

This PR contains the following updates:

Package Change Age Confidence
serialize-javascript 6.0.17.0.5 age confidence

GitHub Vulnerability Alerts

CVE-2026-34043

Impact

What kind of vulnerability is it?

It is a Denial of Service (DoS) vulnerability caused by CPU exhaustion. When serializing a specially crafted "array-like" object (an object that inherits from Array.prototype but has a very large length property), the process enters an intensive loop that consumes 100% CPU and hangs indefinitely.

Who is impacted?

Applications that use serialize-javascript to serialize untrusted or user-controlled objects are at risk. While direct exploitation is difficult, it becomes a high-priority threat if the application is also vulnerable to Prototype Pollution or handles untrusted data via YAML Deserialization, as these could be used to inject the malicious object.

Patches

Has the problem been patched?

Yes, the issue has been patched by replacing instanceof Array checks with Array.isArray() and using Object.keys() for sparse array detection.

What versions should users upgrade to?

Users should upgrade to v7.0.5 or later.

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

There is no direct code-level workaround within the library itself. However, users can mitigate the risk by:

  • Validating and sanitizing all input before passing it to the serialize() function.
  • Ensuring the environment is protected against Prototype Pollution.
  • Upgrading to v7.0.5 as soon as possible.

Acknowledgements

Serialize JavaScript thanks Tomer Aberbach (@​TomerAberbach) for discovering and privately disclosing this issue.


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


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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update dependency serialize-javascript to v6.0.2 [security] fix(deps): update dependency serialize-javascript to v6.0.2 [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 22:19
@renovate renovate bot changed the title fix(deps): update dependency serialize-javascript to v6.0.2 [security] - autoclosed fix(deps): update dependency serialize-javascript to v6.0.2 [security] Feb 23, 2025
@renovate renovate bot reopened this Feb 23, 2025
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 5a161f3 to 48c99fb Compare February 23, 2025 23:02
@renovate renovate bot changed the title fix(deps): update dependency serialize-javascript to v6.0.2 [security] chore(deps): update dependency serialize-javascript to v6.0.2 [security] Sep 25, 2025
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 48c99fb to c7e0f01 Compare March 2, 2026 02:14
@renovate renovate bot changed the title chore(deps): update dependency serialize-javascript to v6.0.2 [security] chore(deps): update dependency serialize-javascript to v7 [security] Mar 2, 2026
@renovate renovate bot changed the title chore(deps): update dependency serialize-javascript to v7 [security] chore(deps): update dependency serialize-javascript to v6.0.2 [security] Mar 5, 2026
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from c7e0f01 to 472d112 Compare March 5, 2026 09:02
@renovate renovate bot changed the title chore(deps): update dependency serialize-javascript to v6.0.2 [security] chore(deps): update dependency serialize-javascript to v7 [security] Mar 5, 2026
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 472d112 to 4478aeb Compare March 5, 2026 23:11
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 4478aeb to 38491f9 Compare March 18, 2026 17:04
@renovate renovate bot changed the title chore(deps): update dependency serialize-javascript to v7 [security] chore(deps): update dependency serialize-javascript to v6.0.2 [security] Mar 18, 2026
@renovate renovate bot changed the title chore(deps): update dependency serialize-javascript to v6.0.2 [security] chore(deps): update dependency serialize-javascript to v7 [security] Mar 22, 2026
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 38491f9 to 7564f00 Compare March 22, 2026 01:13
@renovate renovate bot changed the title chore(deps): update dependency serialize-javascript to v7 [security] chore(deps): update dependency serialize-javascript to v6.0.2 [security] Mar 24, 2026
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch from 7564f00 to ce2e5b0 Compare March 24, 2026 01:18
@renovate renovate bot changed the title chore(deps): update dependency serialize-javascript to v6.0.2 [security] chore(deps): update dependency serialize-javascript to v6.0.2 [security] - autoclosed Mar 27, 2026
@renovate renovate bot closed this Mar 27, 2026
@renovate renovate bot changed the title chore(deps): update dependency serialize-javascript to v6.0.2 [security] - autoclosed chore(deps): update dependency serialize-javascript to v7 [security] Mar 27, 2026
@renovate renovate bot reopened this Mar 27, 2026
@renovate renovate bot force-pushed the renovate/npm-serialize-javascript-vulnerability branch 2 times, most recently from ce2e5b0 to 633587a Compare March 27, 2026 20:56
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.

0 participants