Skip to content

Commit 7edb890

Browse files
oiokiclaude
andauthored
build(deps): Bump express and supertest to fix qs prototype pollution (#206)
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>
1 parent 0a14d19 commit 7edb890

2 files changed

Lines changed: 364 additions & 324 deletions

File tree

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,24 @@
2525
"canvas": "^3.2.0",
2626
"dotenv": "^8.2.0",
2727
"echarts": "6.0.0",
28-
"express": "4.21.2",
28+
"express": "5.2.1",
2929
"joi": "17.6.0",
3030
"winston": "3.7.2",
3131
"yargs": "^16.2.0"
3232
},
3333
"devDependencies": {
34-
"@types/express": "^4.17.21",
34+
"@types/express": "^5.0.6",
3535
"@types/jest-image-snapshot": "4.3.1",
3636
"@types/node": "^20.10.6",
37-
"@types/supertest": "^2.0.10",
37+
"@types/supertest": "^7.2.0",
3838
"@types/yargs": "^17.0.32",
3939
"eslint": "^8.56.0",
4040
"eslint-config-sentry-app": "^1.129.0",
4141
"jest": "^29.7.0",
4242
"jest-fetch-mock": "^3.0.3",
4343
"jest-image-snapshot": "5.1.0",
4444
"prettier": "2.6.2",
45-
"supertest": "6.2.3",
45+
"supertest": "7.2.2",
4646
"ts-jest": "28.0.5",
4747
"tsc-watch": "5.0.3",
4848
"typescript": "^5.3.3"

0 commit comments

Comments
 (0)