Skip to content

fix: bump bundled semver past ReDoS vuln in ts-binary-wrapper - #7166

Open
nick-y-snyk wants to merge 1 commit into
mainfrom
fix/bump-global-agent-semver-redos
Open

fix: bump bundled semver past ReDoS vuln in ts-binary-wrapper#7166
nick-y-snyk wants to merge 1 commit into
mainfrom
fix/bump-global-agent-semver-redos

Conversation

@nick-y-snyk

Copy link
Copy Markdown
Contributor

Summary

  • global-agent (bundled into the published snyk npm package via ts-binary-wrapper's bundleDependencies) depends on semver@^7.3.2, locked at the vulnerable 7.3.8 (SNYK-JS-SEMVER-3247795 / GHSA-c2qf-rxjj-qqgw, ReDoS).
  • The .snyk ignore for this finding expired 2024-09-13 and was never renewed.
  • Add an overrides entry pinning semver to ^7.5.2 under global-agent, refreshed via npm update semver (scoped diff, no unrelated dependency drift).
  • Every published snyk CLI build (stable and preview) will ship the patched semver once this merges and a new version is cut.

Test plan

  • npm test in ts-binary-wrapper — 33/33 passing
  • snyk-axi test against the patched tree — SNYK-JS-SEMVER-3247795 no longer present

global-agent (bundled into the published snyk npm package) depends on
semver@^7.3.2, which was locked at the vulnerable 7.3.8
(SNYK-JS-SEMVER-3247795, GHSA-c2qf-rxjj-qqgw). The .snyk ignore for this
finding expired 2024-09-13 and was never renewed.

Add an override pinning semver to ^7.5.2+ under global-agent and refresh
just that subtree via `npm update semver`, so every published snyk CLI
build (stable and preview) ships the patched version.
@nick-y-snyk
nick-y-snyk requested a review from a team as a code owner August 21, 2026 16:51
@snyk-io

snyk-io Bot commented Aug 21, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@snyk-pr-review-bot

Copy link
Copy Markdown

PR Reviewer Guide 🔍

🧪 PR contains tests
🔒 No security concerns identified
⚡ No major issues detected
📚 Repository Context Analyzed

This review considered 9 relevant code sections from 3 files (average relevance: 0.59)

🤖 Repository instructions applied (from AGENTS.md)

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.

1 participant