Skip to content

[agent] chore(deps): add overrides to force serialize-javascript>=7.0.5#687

Draft
github-actions[bot] wants to merge 1 commit intomainfrom
fix/serialize-javascript-security-3ebebf160494f817
Draft

[agent] chore(deps): add overrides to force serialize-javascript>=7.0.5#687
github-actions[bot] wants to merge 1 commit intomainfrom
fix/serialize-javascript-security-3ebebf160494f817

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Summary

Adds an npm overrides entry to the root package.json to force all transitive instances of serialize-javascript to 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:

Direct dependency Pinned transitive version Status
mocha@^8.4.0 5.0.1 (exact pin) All mocha 8.x and even 10.x/11.x still ship serialize-javascript 6.x — no released version resolves to ≥7.0.5
terser-webpack-plugin@^5.3.x ^6.0.1 Latest 5.x still resolves to 6.0.2 — no released version resolves to ≥7.0.5

Since neither maintainer has shipped a release that clears these advisories, a manifest-version bump cannot remediate the vulnerability. The npm overrides field is the correct fallback per project policy.

Changes

  • package.json: added "overrides": { "serialize-javascript": ">=7.0.5" }
  • package-lock.json: updated — both instances of serialize-javascript (root and the formerly-nested terser-webpack-plugin copy) are now resolved to 7.0.5, with the duplicate nested copy removed via deduplication

Generated by Dependabot remediation agent · ● 1.2M ·

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>
@nirinchev nirinchev closed this Apr 20, 2026
@nirinchev nirinchev reopened this Apr 20, 2026
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage is 78.321%fix/serialize-javascript-security-3ebebf160494f817 into main. No base build found for main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants