-
Notifications
You must be signed in to change notification settings - Fork 279
fix(deps): update dependency express to ~4.20.0 [security] #1993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
d4d6aa5 to
2ec6fac
Compare
e33c780 to
c6aac9e
Compare
c99e97e to
41e34cd
Compare
7d9e5b6 to
ef76c54
Compare
d2f2128 to
b561e10
Compare
64d328e to
6c9180b
Compare
c47821f to
8012d73
Compare
8012d73 to
bd46e62
Compare
bd46e62 to
a5833bb
Compare
a5833bb to
c3c2067
Compare
19d3f55 to
3714f15
Compare
3672962 to
3a5e69a
Compare
2df596a to
f67461a
Compare
5916d6d to
a70b382
Compare
c94ab6d to
da80255
Compare
| encodeurl "~1.0.2" | ||
| escape-html "~1.0.3" | ||
| parseurl "~1.3.3" | ||
| send "0.18.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There appears to be a dependency version inconsistency in the yarn.lock file. The [email protected] package is still referencing [email protected], but the Express 4.20.0 update includes [email protected]. This mismatch could potentially prevent the security fixes from being fully applied or cause compatibility issues.
Consider running yarn install again after merging to ensure the dependency tree is properly resolved, or manually verify that the correct version of send is being used in the final build.
| send "0.18.0" | |
| send "0.19.0" |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
da80255 to
d5ba94c
Compare
88204d8 to
b324f50
Compare
b324f50 to
46cf3e7
Compare
cc12f97 to
77781d2
Compare
77781d2 to
bafb3f0
Compare
This PR contains the following updates:
~4.18.3->~4.20.0GitHub Vulnerability Alerts
CVE-2024-29041
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
encodeurlon the contents before passing it to thelocationheader. 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 withinres.redirect().Patches
expressjs/express@0867302
expressjs/express@0b74695
An initial fix went out with
[email protected], we then patched a feature regression in4.19.1and added improved handling for the bypass in4.19.2.Workarounds
The fix for this involves pre-parsing the url string with either
require('node:url').parseornew URL. These are steps you can take on your own before passing the user input string tores.locationorres.redirect.References
https://github.com/expressjs/express/pull/5539
https://github.com/koajs/koa/issues/1800
https://expressjs.com/en/4x/api.html#res.location
CVE-2024-43796
Impact
In express <4.20.0, passing untrusted user input - even after sanitizing it - to
response.redirect()may execute untrusted codePatches
this issue is patched in express 4.20.0
Workarounds
users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist
Details
successful exploitation of this vector requires the following:
Release Notes
expressjs/express (express)
v4.20.0Compare Source
==========
depthoption to customize the depth level in the parserdepthlevel for parsing URL-encoded data is now32(previously wasInfinity)res.redirect\,|, and^to align better with URL specoptions.maxAgeandoptions.expirestores.clearCookiev4.19.2Compare Source
==========
v4.19.1Compare Source
==========
v4.19.0Compare Source
==========
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: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.