Skip to content

Commit f1799e7

Browse files
chore(deps): update dependency express to v4.19.2 [security] (#173)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [express](http://expressjs.com/) ([source](https://togithub.com/expressjs/express)) | [`4.18.2` -> `4.19.2`](https://renovatebot.com/diffs/npm/express/4.18.2/4.19.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/express/4.19.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/express/4.19.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/express/4.18.2/4.19.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/express/4.18.2/4.19.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | ### GitHub Vulnerability Alerts #### [CVE-2024-29041](https://togithub.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc) ### Impact Versions of Express.js prior to 4.19.2 and pre-release alpha and beta versions before 5.0.0-beta.3 are affected by an open redirect vulnerability using malformed URLs. When a user of Express performs a redirect using a user-provided URL Express performs an encode [using `encodeurl`](https://togithub.com/pillarjs/encodeurl) on the contents before passing it to the `location` header. This can cause malformed URLs to be evaluated in unexpected ways by common redirect allow list implementations in Express applications, leading to an Open Redirect via bypass of a properly implemented allow list. The main method impacted is `res.location()` but this is also called from within `res.redirect()`. ### Patches expressjs/express@0867302 expressjs/express@0b74695 An initial fix went out with `[email protected]`, we then patched a feature regression in `4.19.1` and added improved handling for the bypass in `4.19.2`. ### Workarounds The fix for this involves pre-parsing the url string with either `require('node:url').parse` or `new URL`. These are steps you can take on your own before passing the user input string to `res.location` or `res.redirect`. ### References [https://github.com/expressjs/express/pull/5539](https://togithub.com/expressjs/express/pull/5539) [https://github.com/koajs/koa/issues/1800](https://togithub.com/koajs/koa/issues/1800) https://expressjs.com/en/4x/api.html#res.location --- ### Release Notes <details> <summary>expressjs/express (express)</summary> ### [`v4.19.2`](https://togithub.com/expressjs/express/blob/HEAD/History.md#4192--2024-03-25) [Compare Source](https://togithub.com/expressjs/express/compare/4.19.1...4.19.2) \========== - Improved fix for open redirect allow list bypass ### [`v4.19.1`](https://togithub.com/expressjs/express/blob/HEAD/History.md#4191--2024-03-20) [Compare Source](https://togithub.com/expressjs/express/compare/4.19.0...4.19.1) \========== - Allow passing non-strings to res.location with new encoding handling checks ### [`v4.19.0`](https://togithub.com/expressjs/express/compare/4.18.3...83e77aff6a3859d58206f3ff9501277023c03f87) [Compare Source](https://togithub.com/expressjs/express/compare/4.18.3...4.19.0) ### [`v4.18.3`](https://togithub.com/expressjs/express/blob/HEAD/History.md#4183--2024-02-26) [Compare Source](https://togithub.com/expressjs/express/compare/4.18.2...4.18.3) \========== - Fix routing requests without method - deps: [email protected] - Fix strict json error message on Node.js 19+ - deps: content-type@~1.0.5 - deps: [email protected] </details> --- ### Configuration 📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/carbon-design-system/carbon-for-ibm-dotcom-nextjs-template). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
1 parent 15e0f43 commit f1799e7

9 files changed

+20
-20
lines changed
-20.3 KB
Binary file not shown.
20.5 KB
Binary file not shown.
-9.16 KB
Binary file not shown.
9.28 KB
Binary file not shown.
-62.5 KB
Binary file not shown.
62.8 KB
Binary file not shown.
-10.3 KB
Binary file not shown.
10.3 KB
Binary file not shown.

yarn.lock

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,23 +2733,23 @@ __metadata:
27332733
languageName: node
27342734
linkType: hard
27352735

2736-
"body-parser@npm:1.20.1":
2737-
version: 1.20.1
2738-
resolution: "body-parser@npm:1.20.1"
2736+
"body-parser@npm:1.20.2":
2737+
version: 1.20.2
2738+
resolution: "body-parser@npm:1.20.2"
27392739
dependencies:
27402740
bytes: 3.1.2
2741-
content-type: ~1.0.4
2741+
content-type: ~1.0.5
27422742
debug: 2.6.9
27432743
depd: 2.0.0
27442744
destroy: 1.2.0
27452745
http-errors: 2.0.0
27462746
iconv-lite: 0.4.24
27472747
on-finished: 2.4.1
27482748
qs: 6.11.0
2749-
raw-body: 2.5.1
2749+
raw-body: 2.5.2
27502750
type-is: ~1.6.18
27512751
unpipe: 1.0.0
2752-
checksum: f1050dbac3bede6a78f0b87947a8d548ce43f91ccc718a50dd774f3c81f2d8b04693e52acf62659fad23101827dd318da1fb1363444ff9a8482b886a3e4a5266
2752+
checksum: 14d37ec638ab5c93f6099ecaed7f28f890d222c650c69306872e00b9efa081ff6c596cd9afb9930656aae4d6c4e1c17537bea12bb73c87a217cb3cfea8896737
27532753
languageName: node
27542754
linkType: hard
27552755

@@ -3251,7 +3251,7 @@ __metadata:
32513251
languageName: node
32523252
linkType: hard
32533253

3254-
"content-type@npm:~1.0.4":
3254+
"content-type@npm:~1.0.4, content-type@npm:~1.0.5":
32553255
version: 1.0.5
32563256
resolution: "content-type@npm:1.0.5"
32573257
checksum: 566271e0a251642254cde0f845f9dd4f9856e52d988f4eb0d0dcffbb7a1f8ec98de7a5215fc628f3bce30fe2fb6fd2bc064b562d721658c59b544e2d34ea2766
@@ -3309,10 +3309,10 @@ __metadata:
33093309
languageName: node
33103310
linkType: hard
33113311

3312-
"cookie@npm:0.5.0":
3313-
version: 0.5.0
3314-
resolution: "cookie@npm:0.5.0"
3315-
checksum: 1f4bd2ca5765f8c9689a7e8954183f5332139eb72b6ff783d8947032ec1fdf43109852c178e21a953a30c0dd42257828185be01b49d1eb1a67fd054ca588a180
3312+
"cookie@npm:0.6.0":
3313+
version: 0.6.0
3314+
resolution: "cookie@npm:0.6.0"
3315+
checksum: f56a7d32a07db5458e79c726b77e3c2eff655c36792f2b6c58d351fb5f61531e5b1ab7f46987150136e366c65213cbe31729e02a3eaed630c3bf7334635fb410
33163316
languageName: node
33173317
linkType: hard
33183318

@@ -4397,15 +4397,15 @@ __metadata:
43974397
linkType: hard
43984398

43994399
"express@npm:^4.17.1":
4400-
version: 4.18.2
4401-
resolution: "express@npm:4.18.2"
4400+
version: 4.19.2
4401+
resolution: "express@npm:4.19.2"
44024402
dependencies:
44034403
accepts: ~1.3.8
44044404
array-flatten: 1.1.1
4405-
body-parser: 1.20.1
4405+
body-parser: 1.20.2
44064406
content-disposition: 0.5.4
44074407
content-type: ~1.0.4
4408-
cookie: 0.5.0
4408+
cookie: 0.6.0
44094409
cookie-signature: 1.0.6
44104410
debug: 2.6.9
44114411
depd: 2.0.0
@@ -4431,7 +4431,7 @@ __metadata:
44314431
type-is: ~1.6.18
44324432
utils-merge: 1.0.1
44334433
vary: ~1.1.2
4434-
checksum: 3c4b9b076879442f6b968fe53d85d9f1eeacbb4f4c41e5f16cc36d77ce39a2b0d81b3f250514982110d815b2f7173f5561367f9110fcc541f9371948e8c8b037
4434+
checksum: 212dbd6c2c222a96a61bc927639c95970a53b06257080bb9e2838adb3bffdb966856551fdad1ab5dd654a217c35db94f987d0aa88d48fb04d306340f5f34dca5
44354435
languageName: node
44364436
linkType: hard
44374437

@@ -7207,15 +7207,15 @@ __metadata:
72077207
languageName: node
72087208
linkType: hard
72097209

7210-
"raw-body@npm:2.5.1":
7211-
version: 2.5.1
7212-
resolution: "raw-body@npm:2.5.1"
7210+
"raw-body@npm:2.5.2":
7211+
version: 2.5.2
7212+
resolution: "raw-body@npm:2.5.2"
72137213
dependencies:
72147214
bytes: 3.1.2
72157215
http-errors: 2.0.0
72167216
iconv-lite: 0.4.24
72177217
unpipe: 1.0.0
7218-
checksum: 5362adff1575d691bb3f75998803a0ffed8c64eabeaa06e54b4ada25a0cd1b2ae7f4f5ec46565d1bec337e08b5ac90c76eaa0758de6f72a633f025d754dec29e
7218+
checksum: ba1583c8d8a48e8fbb7a873fdbb2df66ea4ff83775421bfe21ee120140949ab048200668c47d9ae3880012f6e217052690628cf679ddfbd82c9fc9358d574676
72197219
languageName: node
72207220
linkType: hard
72217221

0 commit comments

Comments
 (0)