[agent] chore(deps): add overrides to force serialize-javascript>=7.0.5#687
Draft
github-actions[bot] wants to merge 1 commit intomainfrom
Draft
[agent] chore(deps): add overrides to force serialize-javascript>=7.0.5#687github-actions[bot] wants to merge 1 commit intomainfrom
github-actions[bot] wants to merge 1 commit intomainfrom
Conversation
Addresses two Dependabot alerts: - Alert #173: GHSA-5c6j-r48x-rmvq (RCE via RegExp.flags/Date.toISOString, high severity) - Alert #199: GHSA-qj8w-gfj5-8c6v / CVE-2026-34043 (DoS via CPU exhaustion, medium severity) Both mocha@^8.4.0 and terser-webpack-plugin@^5.3.x ship serialize-javascript 6.x, and neither has released a version shipping >=7.0.5. Adding an npm `overrides` entry forces all transitive instances to resolve to 7.0.5+. 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 to the rootpackage.jsonto force all transitive instances ofserialize-javascriptto resolve to>=7.0.5, addressing two Dependabot security alerts.Alerts addressed
Why overrides?
Two direct (dev) dependencies pull in vulnerable versions of
serialize-javascript:mocha@^8.4.05.0.1(exact pin)serialize-javascript6.x — no released version resolves to ≥7.0.5terser-webpack-plugin@^5.3.x^6.0.1Since neither maintainer has shipped a release that clears these advisories, a manifest-version bump cannot remediate the vulnerability. The npm
overridesfield is the correct fallback per project policy.Changes
package.json: added"overrides": { "serialize-javascript": ">=7.0.5" }package-lock.json: updated — both instances ofserialize-javascript(root and the formerly-nestedterser-webpack-plugincopy) are now resolved to7.0.5, with the duplicate nested copy removed via deduplication