CVE-2024-29041

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-29041
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-29041.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-29041
Aliases
Downstream
Related
Published
2024-03-25T20:20:06Z
Modified
2025-10-17T02:27:08.236511Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Express.js Open Redirect in malformed URLs
Details

Express.js minimalist web framework for node. Versions of Express.js prior to 4.19.0 and all pre-release alpha and beta versions of 5.0 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 <code>encodeurl</code> 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(). The vulnerability is fixed in 4.19.2 and 5.0.0-beta.3.

References

Affected packages

Git / github.com/expressjs/express

Affected ranges

Type
GIT
Repo
https://github.com/expressjs/express
Events
Type
GIT
Repo
https://github.com/expressjs/express
Events

Affected versions

3.*

3.18.3
3.18.4
3.18.5
3.18.6
3.19.0
3.19.1
3.19.2
3.20.0
3.20.1
3.20.2
3.20.3
3.21.0
3.21.1
3.21.2

4.*

4.10.2
4.10.3
4.10.4
4.10.5
4.10.6
4.10.7
4.10.8
4.11.0
4.11.1
4.11.2
4.12.0
4.12.1
4.12.2
4.12.3
4.12.4
4.13.0
4.13.1
4.13.2
4.13.3
4.13.4
4.14.0
4.14.1
4.15.0
4.15.1
4.15.2
4.15.3
4.15.4
4.15.5
4.16.0
4.16.1
4.16.2
4.16.3
4.16.4
4.17.0
4.17.1
4.17.2
4.17.3
4.18.0
4.18.1
4.18.2
4.18.3
4.19.0
4.19.1
4.19.2

5.*

5.0.0-alpha.1
5.0.0-alpha.2
5.0.0-alpha.3
5.0.0-alpha.4
5.0.0-alpha.5
5.0.0-alpha.6
5.0.0-alpha.7
5.0.0-alpha.8
5.0.0-beta.2

v5.*

v5.0.0-beta.1