[agent] chore(deps): override serialize-javascript to ^7.0.5#761
Draft
github-actions[bot] wants to merge 1 commit into
Draft
[agent] chore(deps): override serialize-javascript to ^7.0.5#761github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Fixes CVE-2026-34043 / GHSA-qj8w-gfj5-8c6v - CPU exhaustion DoS via crafted array-like objects in serialize-javascript. Adds an npm override to force serialize-javascript >= 7.0.5 across all transitive dependents (mocha and terser-webpack-plugin). Neither mocha@8 nor terser-webpack-plugin@5 have shipped a release that uses serialize-javascript >= 7.0.5, so the override is the correct remediation path. Dependabot alert: #264 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds an npm
overridesentry in the rootpackage.jsonto forceserialize-javascriptto^7.0.5, fixing a CPU exhaustion Denial-of-Service vulnerability.Vulnerability
GHSA-qj8w-gfj5-8c6v / CVE-2026-34043 —
serialize-javascriptCPU Exhaustion DoS via crafted array-like objects (CVSS 5.9 Medium)Affected range:
>= 5.0.0, < 7.0.5Fixed in:
7.0.5The vulnerability allows an attacker to cause 100% CPU utilization by passing a specially crafted array-like object (with an overridden
lengthproperty) to theserialize()function, leading to an indefinite hang.Why
overrides?Two direct devDependencies pull in vulnerable transitive versions of
serialize-javascript:serialize-javascriptmocha@8.4.05.0.1(exact)mocha8.x and even 11.x still declare^6.0.2; no release uses^7.0.5yetterser-webpack-plugin@5.3.8^6.0.15.6.0still uses^6.0.2; no release uses^7.0.5yetSince neither upstream maintainer has shipped a patched release within their supported version range, an npm
overridesentry is the correct fallback per security policy.Changes
package.json: adds"overrides": { "serialize-javascript": "^7.0.5" }package-lock.json: updated — both the top-levelnode_modules/serialize-javascriptand the nestednode_modules/terser-webpack-plugin/node_modules/serialize-javascriptnow resolve to7.0.5; the nested copy is deduped to the top-level one.Alerts addressed