NodeJS/express/5.0.0-beta.3


Fast, unopinionated, minimalist web framework

https://www.npmjs.com/package/express
MIT

1 Security Vulnerabilities

express vulnerable to XSS via response.redirect()

Published date: 2024-09-10T19:41:04Z
CVE: CVE-2024-43796
Links:

Impact

In express <4.20.0, passing untrusted user input - even after sanitizing it - to response.redirect() may execute untrusted code

Patches

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:

  1. The attacker MUST control the input to response.redirect()
  2. express MUST NOT redirect before the template appears
  3. the browser MUST NOT complete redirection before:
  4. the user MUST click on the link in the template

Affected versions: ["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-alpha.1", "5.0.0-beta.1", "5.0.0-beta.2", "5.0.0-beta.3", "0.14.1", "1.0.5", "1.0.6", "2.0.0", "2.1.0", "2.1.1", "2.3.0", "2.3.3", "2.3.6", "2.3.8", "2.3.10", "2.3.12", "2.4.2", "2.4.6", "2.5.0", "2.5.5", "2.5.8", "2.5.10", "3.0.0", "3.0.2", "3.1.0", "3.1.1", "3.1.2", "3.2.0", "3.2.1", "3.2.2", "3.2.3", "3.2.6", "3.3.3", "3.3.4", "3.3.6", "1.0.0-beta2", "2.0.0-beta", "2.0.0-beta2", "2.0.0-rc2", "3.0.0-alpha2", "3.0.0-beta3", "3.0.0-beta6", "3.0.0-beta7", "3.0.0-rc1", "3.0.0-rc2", "3.0.0-rc3", "3.0.0-rc4", "3.0.0-rc5", "3.3.7", "3.4.0", "3.4.1", "3.4.2", "3.4.3", "3.4.6", "3.4.8", "4.0.0-rc1", "4.0.0-rc2", "3.5.0", "3.5.1", "4.0.0", "3.5.2", "4.1.0", "4.1.1", "3.5.3", "3.6.0", "3.7.0", "3.8.0", "3.8.1", "4.3.2", "3.9.0", "4.4.0", "4.4.1", "3.10.0", "3.10.1", "3.10.2", "3.10.3", "3.10.4", "4.4.4", "3.12.0", "3.12.1", "4.4.5", "3.13.0", "4.6.0", "4.6.1", "3.15.0", "3.15.1", "4.7.3", "4.7.4", "4.8.0", "4.8.2", "3.16.3", "3.16.4", "3.16.5", "3.16.7", "4.8.5", "3.16.8", "3.16.9", "3.17.2", "4.9.1", "4.9.3", "3.17.4", "3.17.5", "4.9.5", "4.9.6", "4.9.7", "4.9.8", "3.18.0", "3.18.1", "4.10.0", "4.10.1", "3.18.3", "4.10.2", "3.18.4", "4.10.3", "4.10.4", "4.10.5", "3.18.6", "4.10.6", "3.19.0", "4.11.0", "3.19.2", "4.11.2", "3.20.0", "4.12.1", "3.20.3", "4.12.4", "3.21.0", "4.13.0", "3.21.2", "4.15.3", "4.15.4", "4.16.4", "4.17.0", "0.14.0", "1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.0.4", "1.0.7", "1.0.8", "2.2.0", "2.2.1", "2.2.2", "2.3.1", "2.3.2", "2.3.4", "2.3.5", "2.3.7", "2.3.9", "2.3.11", "2.4.0", "2.4.1", "2.4.3", "2.4.4", "2.4.5", "2.4.7", "2.5.1", "2.5.2", "2.5.3", "2.5.4", "2.5.6", "2.5.7", "2.5.9", "2.5.11", "3.0.1", "3.0.3", "3.0.4", "3.0.5", "3.0.6", "3.2.4", "3.2.5", "3.3.0", "3.3.1", "3.3.2", "3.3.5", "1.0.0-beta", "1.0.0-rc", "1.0.0-rc2", "1.0.0-rc3", "1.0.0-rc4", "2.0.0-beta3", "2.0.0-rc", "2.0.0-rc3", "3.0.0-alpha1", "3.0.0-alpha3", "3.0.0-alpha4", "3.0.0-alpha5", "3.0.0-beta1", "3.0.0-beta2", "3.0.0-beta4", "3.3.8", "3.4.4", "3.4.5", "3.4.7", "4.0.0-rc3", "4.0.0-rc4", "4.1.2", "4.2.0", "4.3.0", "4.3.1", "4.4.2", "3.10.5", "4.4.3", "3.11.0", "4.5.0", "4.5.1", "3.14.0", "4.7.0", "4.7.1", "3.15.2", "4.7.2", "3.15.3", "3.16.0", "3.16.1", "4.8.1", "3.16.2", "4.8.3", "3.16.6", "4.8.4", "4.8.6", "4.8.7", "3.16.10", "4.8.8", "3.17.0", "3.17.1", "4.9.0", "4.9.2", "3.17.3", "4.9.4", "3.17.6", "3.17.7", "3.17.8", "3.18.2", "3.18.5", "4.10.7", "4.10.8", "3.19.1", "4.11.1", "4.12.0", "3.20.1", "4.12.2", "3.20.2", "4.12.3", "3.21.1", "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.5", "4.16.0", "4.16.1", "4.16.2", "4.16.3", "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"]
Secure versions: [4.20.0, 4.21.0, 4.21.1, 4.21.2, 5.0.0, 5.0.1, 5.1.0]
Recommendation: Update to version 5.1.0.

283 Other Versions

Version License Security Released
3.14.0 MIT 5 2014-07-11 - 17:31 almost 11 years
3.13.0 MIT 5 2014-07-04 - 05:08 almost 11 years
3.12.1 MIT 5 2014-06-27 - 00:19 about 11 years
3.12.0 MIT 5 2014-06-22 - 02:35 about 11 years
3.11.0 MIT 5 2014-06-20 - 03:43 about 11 years
3.10.5 MIT 7 2014-06-12 - 04:36 about 11 years
3.10.4 MIT 7 2014-06-09 - 22:56 about 11 years
3.10.3 MIT 7 2014-06-06 - 03:41 about 11 years
3.10.2 MIT 7 2014-06-04 - 01:36 about 11 years
3.10.1 MIT 7 2014-06-03 - 21:19 about 11 years
3.10.0 MIT 7 2014-06-03 - 04:42 about 11 years
3.9.0 MIT 7 2014-05-31 - 01:38 about 11 years
3.8.1 MIT 7 2014-05-28 - 03:43 about 11 years
3.8.0 MIT 7 2014-05-21 - 06:08 about 11 years
3.7.0 MIT 7 2014-05-18 - 14:42 about 11 years
3.6.0 MIT 7 2014-05-09 - 21:07 about 11 years
3.5.3 MIT 7 2014-05-08 - 17:53 about 11 years
3.5.2 MIT 7 2014-04-24 - 20:40 about 11 years
3.5.1 MIT 7 2014-03-25 - 20:59 over 11 years
3.5.0 MIT 7 2014-03-06 - 22:58 over 11 years
3.4.8 MIT 7 2014-01-14 - 04:51 over 11 years
3.4.7 MIT 7 2013-12-11 - 07:57 over 11 years
3.4.6 MIT 7 2013-12-01 - 20:21 over 11 years
3.4.5 MIT 7 2013-11-27 - 23:54 over 11 years
3.4.4 MIT 6 2013-10-29 - 17:34 over 11 years
3.4.3 MIT 6 2013-10-23 - 18:19 over 11 years
3.4.2 MIT 6 2013-10-19 - 02:04 over 11 years
3.4.1 MIT 6 2013-10-16 - 01:34 over 11 years
3.4.0 MIT 6 2013-09-07 - 19:25 almost 12 years
3.3.8 MIT 6 2013-09-02 - 15:01 almost 12 years
3.3.7 MIT 6 2013-08-28 - 17:04 almost 12 years
3.3.6 MIT 6 2013-08-27 - 20:49 almost 12 years
3.3.5 MIT 6 2013-08-10 - 21:51 almost 12 years
3.3.4 MIT 6 2013-07-08 - 21:42 almost 12 years
3.3.3 MIT 6 2013-07-04 - 20:40 almost 12 years
3.3.2 MIT 6 2013-07-03 - 18:25 almost 12 years
3.3.1 MIT 6 2013-06-27 - 15:32 about 12 years
3.3.0 MIT 6 2013-06-26 - 17:07 about 12 years
3.2.6 MIT 6 2013-06-03 - 00:15 about 12 years
3.2.5 MIT 6 2013-05-22 - 04:02 about 12 years
3.2.4 MIT 6 2013-05-09 - 16:18 about 12 years
3.2.3 MIT 6 2013-05-07 - 14:55 about 12 years
3.2.2 MIT 6 2013-05-03 - 19:55 about 12 years
3.2.1 MIT 6 2013-04-30 - 02:17 about 12 years
3.2.0 MIT 6 2013-04-15 - 19:35 about 12 years
3.1.2 MIT 6 2013-04-12 - 19:14 about 12 years
3.1.1 MIT 6 2013-04-01 - 18:26 over 12 years
3.1.0 MIT 6 2013-01-26 - 04:27 over 12 years
3.0.6 MIT 6 2013-01-05 - 02:51 over 12 years
3.0.5 MIT 6 2012-12-19 - 21:45 over 12 years