build(deps): Bump express and supertest to fix qs prototype pollution#206
Merged
build(deps): Bump express and supertest to fix qs prototype pollution#206
Conversation
express@4 and supertest@6 both pulled in vulnerable versions of qs (<6.14.2, GHSA-hrpp-h998-j3pp). express@5 natively requires qs@^6.14.0 which resolves to the patched 6.15.0; supertest@7 drops formidable entirely so qs is no longer in that dependency chain at all. Also bumps @types/express (^4→^5) and @types/supertest (^2→^7) to match. All existing tests pass against the new versions. Co-Authored-By: Claude <noreply@anthropic.com>
geoffg-sentry
approved these changes
Feb 26, 2026
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.
Fixes the qs prototype pollution vulnerability (GHSA-hrpp-h998-j3pp). The earliest patched version is qs@6.14.2, but neither express@4 nor supertest@6 could satisfy that constraint through their normal dependency ranges.
Rather than using a
resolutionsoverride (which would have forcefully replaced express's explicitly pinnedqs@6.13.0), this bumps the two blocking packages to versions that resolve qs cleanly:qs@^6.14.0, which resolves to 6.15.0 (patched). The express usage in this repo is minimal enough that the 4→5 migration requires no code changes — all existing tests pass.formidablein favour ofsuperagent@10, so qs is no longer in its dependency chain at all.Also bumps
@types/express(^4→^5) and@types/supertest(^2→^7) to match.