NodeJS/express/3.0.0-alpha3 Fast, unopinionated, minimalist web framework
Repo Link: https://www.npmjs.com/package/express License: MIT
7 Security Vulnerabilities Published date: 2024-10-29T18:30:37Z
CVE: CVE-2024-10491
A vulnerability has been identified in the Express response.links function, allowing for arbitrary resource injection in the Link header when unsanitized data is used.
The issue arises from improper sanitization in Link header values, which can allow a combination of characters like ,, ;, and <> to preload malicious resources.
This vulnerability is especially relevant for dynamic parameters.
Affected versions: ["3.21.2", "3.21.1", "3.21.0", "3.20.3", "3.20.2", "3.20.1", "3.20.0", "3.19.2", "3.19.1", "3.19.0", "3.18.6", "3.18.5", "3.18.4", "3.18.3", "3.18.2", "3.18.1", "3.18.0", "3.17.8", "3.17.7", "3.17.6", "3.17.5", "3.17.4", "3.17.3", "3.17.2", "3.17.1", "3.17.0", "3.16.10", "3.16.9", "3.16.8", "3.16.7", "3.16.6", "3.16.5", "3.16.4", "3.16.3", "3.16.2", "3.16.1", "3.16.0", "3.15.3", "3.15.2", "3.15.1", "3.15.0", "3.14.0", "3.13.0", "3.12.1", "3.12.0", "3.11.0", "3.10.5", "3.10.4", "3.10.3", "3.10.2", "3.10.1", "3.10.0", "3.9.0", "3.8.1", "3.8.0", "3.7.0", "3.6.0", "3.5.3", "3.5.2", "3.5.1", "3.5.0", "3.4.8", "3.4.7", "3.4.6", "3.4.5", "3.4.4", "3.4.3", "3.4.2", "3.4.1", "3.4.0", "3.3.8", "3.3.7", "3.3.6", "3.3.5", "3.3.4", "3.3.3", "3.3.2", "3.3.1", "3.3.0", "3.2.6", "3.2.5", "3.2.4", "3.2.3", "3.2.2", "3.2.1", "3.2.0", "3.1.2", "3.1.1", "3.1.0", "3.0.6", "3.0.5", "3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0", "3.0.0-rc5", "3.0.0-rc4", "3.0.0-rc3", "3.0.0-rc2", "3.0.0-rc1", "3.0.0-beta7", "3.0.0-beta6", "3.0.0-beta4", "3.0.0-beta3", "3.0.0-beta2", "3.0.0-beta1", "3.0.0-alpha5", "3.0.0-alpha4", "3.0.0-alpha3", "3.0.0-alpha2", "3.0.0-alpha1", "2.5.11", "2.5.10", "2.5.9", "2.5.8", "2.5.7", "2.5.6", "2.5.5", "2.5.4", "2.5.3", "2.5.2", "2.5.1", "2.5.0", "2.4.7", "2.4.6", "2.4.5", "2.4.4", "2.4.3", "2.4.2", "2.4.1", "2.4.0", "2.3.12", "2.3.11", "2.3.10", "2.3.9", "2.3.8", "2.3.7", "2.3.6", "2.3.5", "2.3.4", "2.3.3", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.0", "2.0.0-rc3", "2.0.0-rc2", "2.0.0-rc", "2.0.0-beta3", "2.0.0-beta2", "2.0.0-beta", "1.0.8", "1.0.7", "1.0.6", "1.0.5", "1.0.4", "1.0.3", "1.0.2", "1.0.1", "1.0.0", "1.0.0-rc4", "1.0.0-rc3", "1.0.0-rc2", "1.0.0-rc", "1.0.0-beta2", "1.0.0-beta", "0.14.1", "0.14.0"]
Secure versions: [4.22.0, 4.22.1, 5.2.0, 5.2.1]
Recommendation: Update to version 5.2.1.
Published date: 2018-10-23T17:22:54Z
CVE: CVE-2014-6393
Vulnerable versions of express do not specify a charset field in the content-type header while displaying 400 level response messages. The lack of enforcing user's browser to set correct charset, could be leveraged by an attacker to perform a cross-site scripting attack, using non-standard encodings, like UTF-7.
Recommendation For express 3.x, update express to version 3.11 or later. For express 4.x, update express to version 4.5 or later.
Affected versions: ["4.4.5", "4.4.4", "4.4.3", "4.4.2", "4.4.1", "4.4.0", "4.3.2", "4.3.1", "4.3.0", "4.2.0", "4.1.2", "4.1.1", "4.1.0", "4.0.0", "3.10.5", "3.10.4", "3.10.3", "3.10.2", "3.10.1", "3.10.0", "3.9.0", "3.8.1", "3.8.0", "3.7.0", "3.6.0", "3.5.3", "3.5.2", "3.5.1", "3.5.0", "3.4.8", "3.4.7", "3.4.6", "3.4.5", "3.4.4", "3.4.3", "3.4.2", "3.4.1", "3.4.0", "3.3.8", "3.3.7", "3.3.6", "3.3.5", "3.3.4", "3.3.3", "3.3.2", "3.3.1", "3.3.0", "3.2.6", "3.2.5", "3.2.4", "3.2.3", "3.2.2", "3.2.1", "3.2.0", "3.1.2", "3.1.1", "3.1.0", "3.0.6", "3.0.5", "3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0", "3.0.0-rc5", "3.0.0-rc4", "3.0.0-rc3", "3.0.0-rc2", "3.0.0-rc1", "3.0.0-beta7", "3.0.0-beta6", "3.0.0-beta4", "3.0.0-beta3", "3.0.0-beta2", "3.0.0-beta1", "3.0.0-alpha5", "3.0.0-alpha4", "3.0.0-alpha3", "3.0.0-alpha2", "3.0.0-alpha1", "2.5.11", "2.5.10", "2.5.9", "2.5.8", "2.5.7", "2.5.6", "2.5.5", "2.5.4", "2.5.3", "2.5.2", "2.5.1", "2.5.0", "2.4.7", "2.4.6", "2.4.5", "2.4.4", "2.4.3", "2.4.2", "2.4.1", "2.4.0", "2.3.12", "2.3.11", "2.3.10", "2.3.9", "2.3.8", "2.3.7", "2.3.6", "2.3.5", "2.3.4", "2.3.3", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.0", "2.0.0-rc3", "2.0.0-rc2", "2.0.0-rc", "2.0.0-beta3", "2.0.0-beta2", "2.0.0-beta", "1.0.8", "1.0.7", "1.0.6", "1.0.5", "1.0.4", "1.0.3", "1.0.2", "1.0.1", "1.0.0", "1.0.0-rc4", "1.0.0-rc3", "1.0.0-rc2", "1.0.0-rc", "1.0.0-beta2", "1.0.0-beta", "0.14.1", "0.14.0"]
Secure versions: [4.22.0, 4.22.1, 5.2.0, 5.2.1]
Recommendation: Update to version 5.2.1.
Published date: 2022-11-27T00:30:50Z
CVE: CVE-2022-24999
qs before 6.10.3, as used in Express before 4.17.3 and other products, allows attackers to cause a Node process hang for an Express application because an __ proto__ key can be used. In many typical Express use cases, an unauthenticated remote attacker can place the attack payload in the query string of the URL that is used to visit the application, such as a[proto ]=b&a[proto ]&a[length]=100000000. The fix was backported to qs 6.9.7, 6.8.3, 6.7.3, 6.6.1, 6.5.3, 6.4.1, 6.3.3, and 6.2.4 (and therefore Express 4.17.3, which has deps: qs@6.9.7 in its release description, is not vulnerable).
Affected versions: ["0.14.0", "0.14.1", "1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.0.4", "1.0.5", "1.0.6", "1.0.7", "1.0.8", "2.0.0", "2.1.0", "2.1.1", "2.2.0", "2.2.1", "2.2.2", "2.3.0", "2.3.1", "2.3.2", "2.3.3", "2.3.4", "2.3.5", "2.3.6", "2.3.7", "2.3.8", "2.3.9", "2.3.10", "2.3.11", "2.3.12", "2.4.0", "2.4.1", "2.4.2", "2.4.3", "2.4.4", "2.4.5", "2.4.6", "2.4.7", "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.5.4", "2.5.5", "2.5.6", "2.5.7", "2.5.8", "2.5.9", "2.5.10", "2.5.11", "3.0.0", "3.0.1", "3.0.2", "3.0.3", "3.0.4", "3.0.5", "3.0.6", "3.1.0", "3.1.1", "3.1.2", "3.2.0", "3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.3.0", "3.3.1", "3.3.2", "3.3.3", "3.3.4", "3.3.5", "3.3.6", "1.0.0-beta", "1.0.0-beta2", "1.0.0-rc", "1.0.0-rc2", "1.0.0-rc3", "1.0.0-rc4", "2.0.0-beta", "2.0.0-beta2", "2.0.0-beta3", "2.0.0-rc", "2.0.0-rc2", "2.0.0-rc3", "3.0.0-alpha1", "3.0.0-alpha2", "3.0.0-alpha3", "3.0.0-alpha4", "3.0.0-alpha5", "3.0.0-beta1", "3.0.0-beta2", "3.0.0-beta3", "3.0.0-beta4", "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.3.8", "3.4.0", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", "3.4.6", "3.4.7", "3.4.8", "4.0.0-rc1", "4.0.0-rc2", "3.5.0", "4.0.0-rc3", "4.0.0-rc4", "3.5.1", "4.0.0", "3.5.2", "4.1.0", "4.1.1", "3.5.3", "4.1.2", "3.6.0", "4.2.0", "3.7.0", "3.8.0", "4.3.0", "4.3.1", "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.2", "3.10.5", "4.4.3", "3.11.0", "4.4.4", "3.12.0", "3.12.1", "4.4.5", "3.13.0", "4.5.0", "4.5.1", "3.14.0", "4.6.0", "4.6.1", "3.15.0", "4.7.0", "3.15.1", "4.7.1", "3.15.2", "4.7.2", "4.7.3", "3.15.3", "4.7.4", "3.16.0", "4.8.0", "3.16.1", "4.8.1", "3.16.2", "4.8.2", "3.16.3", "3.16.4", "4.8.3", "3.16.5", "3.16.6", "4.8.4", "3.16.7", "4.8.5", "3.16.8", "4.8.6", "3.16.9", "4.8.7", "3.16.10", "4.8.8", "3.17.0", "3.17.1", "4.9.0", "3.17.2", "4.9.1", "4.9.2", "3.17.3", "4.9.3", "3.17.4", "4.9.4", "3.17.5", "4.9.5", "3.17.6", "3.17.7", "4.9.6", "4.9.7", "3.17.8", "4.9.8", "3.18.0", "3.18.1", "4.10.0", "3.18.2", "4.10.1", "3.18.3", "4.10.2", "3.18.4", "4.10.3", "4.10.4", "4.10.5", "3.18.5", "3.18.6", "4.10.6", "4.10.7", "3.19.0", "4.10.8", "4.11.0", "3.19.1", "4.11.1", "3.19.2", "4.11.2", "3.20.0", "4.12.0", "3.20.1", "4.12.1", "4.12.2", "3.20.2", "4.12.3", "3.20.3", "4.12.4", "3.21.0", "4.13.0", "3.21.1", "4.13.1", "3.21.2", "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"]
Secure versions: [4.22.0, 4.22.1, 5.2.0, 5.2.1]
Recommendation: Update to version 5.2.1.
Published date: 2025-12-01T18:59:17Z
CVE: CVE-2024-51999
Impact when using the extended query parser in express ('query parser': 'extended'), the request.query object inherits all object prototype properties, but these properties can be overwritten by query string parameter keys that match the property names
[!IMPORTANT] the extended query parser is the default in express 4; this was changed in express 5 which by default uses the simple query parser
Patches the issue has been patched to ensure request.query is a plain object so request.query no longer has object prototype properties. this brings the default behavior of extended query parsing in line with express's default simple query parser
Workaround this only impacts users using extended query parsing ('query parser': 'extended'), which is the default in express 4, but not express 5. all users are encouraged to upgrade to the patched versions, but can otherwise work around this issue:
provide qs directly and specify plainObjects: true app.set('query parser',
function (str) {
return qs.parse(str, {
plainObjects: true
});
});
Affected versions: ["5.1.0", "5.0.1", "5.0.0", "4.21.2", "4.21.1", "4.21.0", "4.20.0", "4.19.2", "4.19.1", "4.19.0", "4.18.3", "4.18.2", "4.18.1", "4.18.0", "4.17.3", "4.17.2", "4.17.1", "4.17.0", "4.16.4", "4.16.3", "4.16.2", "4.16.1", "4.16.0", "4.15.5", "4.15.4", "4.15.3", "4.15.2", "4.15.1", "4.15.0", "4.14.1", "4.14.0", "4.13.4", "4.13.3", "4.13.2", "4.13.1", "4.13.0", "4.12.4", "4.12.3", "4.12.2", "4.12.1", "4.12.0", "4.11.2", "4.11.1", "4.11.0", "4.10.8", "4.10.7", "4.10.6", "4.10.5", "4.10.4", "4.10.3", "4.10.2", "4.10.1", "4.10.0", "4.9.8", "4.9.7", "4.9.6", "4.9.5", "4.9.4", "4.9.3", "4.9.2", "4.9.1", "4.9.0", "4.8.8", "4.8.7", "4.8.6", "4.8.5", "4.8.4", "4.8.3", "4.8.2", "4.8.1", "4.8.0", "4.7.4", "4.7.3", "4.7.2", "4.7.1", "4.7.0", "4.6.1", "4.6.0", "4.5.1", "4.5.0", "4.4.5", "4.4.4", "4.4.3", "4.4.2", "4.4.1", "4.4.0", "4.3.2", "4.3.1", "4.3.0", "4.2.0", "4.1.2", "4.1.1", "4.1.0", "4.0.0", "4.0.0-rc4", "4.0.0-rc3", "4.0.0-rc2", "4.0.0-rc1", "3.21.2", "3.21.1", "3.21.0", "3.20.3", "3.20.2", "3.20.1", "3.20.0", "3.19.2", "3.19.1", "3.19.0", "3.18.6", "3.18.5", "3.18.4", "3.18.3", "3.18.2", "3.18.1", "3.18.0", "3.17.8", "3.17.7", "3.17.6", "3.17.5", "3.17.4", "3.17.3", "3.17.2", "3.17.1", "3.17.0", "3.16.10", "3.16.9", "3.16.8", "3.16.7", "3.16.6", "3.16.5", "3.16.4", "3.16.3", "3.16.2", "3.16.1", "3.16.0", "3.15.3", "3.15.2", "3.15.1", "3.15.0", "3.14.0", "3.13.0", "3.12.1", "3.12.0", "3.11.0", "3.10.5", "3.10.4", "3.10.3", "3.10.2", "3.10.1", "3.10.0", "3.9.0", "3.8.1", "3.8.0", "3.7.0", "3.6.0", "3.5.3", "3.5.2", "3.5.1", "3.5.0", "3.4.8", "3.4.7", "3.4.6", "3.4.5", "3.4.4", "3.4.3", "3.4.2", "3.4.1", "3.4.0", "3.3.8", "3.3.7", "3.3.6", "3.3.5", "3.3.4", "3.3.3", "3.3.2", "3.3.1", "3.3.0", "3.2.6", "3.2.5", "3.2.4", "3.2.3", "3.2.2", "3.2.1", "3.2.0", "3.1.2", "3.1.1", "3.1.0", "3.0.6", "3.0.5", "3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0", "3.0.0-rc5", "3.0.0-rc4", "3.0.0-rc3", "3.0.0-rc2", "3.0.0-rc1", "3.0.0-beta7", "3.0.0-beta6", "3.0.0-beta4", "3.0.0-beta3", "3.0.0-beta2", "3.0.0-beta1", "3.0.0-alpha5", "3.0.0-alpha4", "3.0.0-alpha3", "3.0.0-alpha2", "3.0.0-alpha1", "2.5.11", "2.5.10", "2.5.9", "2.5.8", "2.5.7", "2.5.6", "2.5.5", "2.5.4", "2.5.3", "2.5.2", "2.5.1", "2.5.0", "2.4.7", "2.4.6", "2.4.5", "2.4.4", "2.4.3", "2.4.2", "2.4.1", "2.4.0", "2.3.12", "2.3.11", "2.3.10", "2.3.9", "2.3.8", "2.3.7", "2.3.6", "2.3.5", "2.3.4", "2.3.3", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.0", "2.0.0-rc3", "2.0.0-rc2", "2.0.0-rc", "2.0.0-beta3", "2.0.0-beta2", "2.0.0-beta", "1.0.8", "1.0.7", "1.0.6", "1.0.5", "1.0.4", "1.0.3", "1.0.2", "1.0.1", "1.0.0", "1.0.0-rc4", "1.0.0-rc3", "1.0.0-rc2", "1.0.0-rc", "1.0.0-beta2", "1.0.0-beta", "0.14.1", "0.14.0"]
Secure versions: [4.22.0, 4.22.1, 5.2.0, 5.2.1]
Recommendation: Update to version 5.2.1.
Published date: 2024-09-10T19:41:04Z
CVE: CVE-2024-43796
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:
The attacker MUST control the input to response.redirect() express MUST NOT redirect before the template appears the browser MUST NOT complete redirection before: the user MUST click on the link in the template Affected versions: ["5.0.0-beta.3", "5.0.0-beta.2", "5.0.0-beta.1", "5.0.0-alpha.8", "5.0.0-alpha.7", "5.0.0-alpha.6", "5.0.0-alpha.5", "5.0.0-alpha.4", "5.0.0-alpha.3", "5.0.0-alpha.2", "5.0.0-alpha.1", "4.19.2", "4.19.1", "4.19.0", "4.18.3", "4.18.2", "4.18.1", "4.18.0", "4.17.3", "4.17.2", "4.17.1", "4.17.0", "4.16.4", "4.16.3", "4.16.2", "4.16.1", "4.16.0", "4.15.5", "4.15.4", "4.15.3", "4.15.2", "4.15.1", "4.15.0", "4.14.1", "4.14.0", "4.13.4", "4.13.3", "4.13.2", "4.13.1", "4.13.0", "4.12.4", "4.12.3", "4.12.2", "4.12.1", "4.12.0", "4.11.2", "4.11.1", "4.11.0", "4.10.8", "4.10.7", "4.10.6", "4.10.5", "4.10.4", "4.10.3", "4.10.2", "4.10.1", "4.10.0", "4.9.8", "4.9.7", "4.9.6", "4.9.5", "4.9.4", "4.9.3", "4.9.2", "4.9.1", "4.9.0", "4.8.8", "4.8.7", "4.8.6", "4.8.5", "4.8.4", "4.8.3", "4.8.2", "4.8.1", "4.8.0", "4.7.4", "4.7.3", "4.7.2", "4.7.1", "4.7.0", "4.6.1", "4.6.0", "4.5.1", "4.5.0", "4.4.5", "4.4.4", "4.4.3", "4.4.2", "4.4.1", "4.4.0", "4.3.2", "4.3.1", "4.3.0", "4.2.0", "4.1.2", "4.1.1", "4.1.0", "4.0.0", "4.0.0-rc4", "4.0.0-rc3", "4.0.0-rc2", "4.0.0-rc1", "3.21.2", "3.21.1", "3.21.0", "3.20.3", "3.20.2", "3.20.1", "3.20.0", "3.19.2", "3.19.1", "3.19.0", "3.18.6", "3.18.5", "3.18.4", "3.18.3", "3.18.2", "3.18.1", "3.18.0", "3.17.8", "3.17.7", "3.17.6", "3.17.5", "3.17.4", "3.17.3", "3.17.2", "3.17.1", "3.17.0", "3.16.10", "3.16.9", "3.16.8", "3.16.7", "3.16.6", "3.16.5", "3.16.4", "3.16.3", "3.16.2", "3.16.1", "3.16.0", "3.15.3", "3.15.2", "3.15.1", "3.15.0", "3.14.0", "3.13.0", "3.12.1", "3.12.0", "3.11.0", "3.10.5", "3.10.4", "3.10.3", "3.10.2", "3.10.1", "3.10.0", "3.9.0", "3.8.1", "3.8.0", "3.7.0", "3.6.0", "3.5.3", "3.5.2", "3.5.1", "3.5.0", "3.4.8", "3.4.7", "3.4.6", "3.4.5", "3.4.4", "3.4.3", "3.4.2", "3.4.1", "3.4.0", "3.3.8", "3.3.7", "3.3.6", "3.3.5", "3.3.4", "3.3.3", "3.3.2", "3.3.1", "3.3.0", "3.2.6", "3.2.5", "3.2.4", "3.2.3", "3.2.2", "3.2.1", "3.2.0", "3.1.2", "3.1.1", "3.1.0", "3.0.6", "3.0.5", "3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0", "3.0.0-rc5", "3.0.0-rc4", "3.0.0-rc3", "3.0.0-rc2", "3.0.0-rc1", "3.0.0-beta7", "3.0.0-beta6", "3.0.0-beta4", "3.0.0-beta3", "3.0.0-beta2", "3.0.0-beta1", "3.0.0-alpha5", "3.0.0-alpha4", "3.0.0-alpha3", "3.0.0-alpha2", "3.0.0-alpha1", "2.5.11", "2.5.10", "2.5.9", "2.5.8", "2.5.7", "2.5.6", "2.5.5", "2.5.4", "2.5.3", "2.5.2", "2.5.1", "2.5.0", "2.4.7", "2.4.6", "2.4.5", "2.4.4", "2.4.3", "2.4.2", "2.4.1", "2.4.0", "2.3.12", "2.3.11", "2.3.10", "2.3.9", "2.3.8", "2.3.7", "2.3.6", "2.3.5", "2.3.4", "2.3.3", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.0", "2.0.0-rc3", "2.0.0-rc2", "2.0.0-rc", "2.0.0-beta3", "2.0.0-beta2", "2.0.0-beta", "1.0.8", "1.0.7", "1.0.6", "1.0.5", "1.0.4", "1.0.3", "1.0.2", "1.0.1", "1.0.0", "1.0.0-rc4", "1.0.0-rc3", "1.0.0-rc2", "1.0.0-rc", "1.0.0-beta2", "1.0.0-beta", "0.14.1", "0.14.0"]
Secure versions: [4.22.0, 4.22.1, 5.2.0, 5.2.1]
Recommendation: Update to version 5.2.1.
Published date: 2024-03-25T19:40:26Z
CVE: 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 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 https://github.com/expressjs/express/commit/0867302ddbde0e9463d0564fea5861feb708c2dd https://github.com/expressjs/express/commit/0b746953c4bd8e377123527db11f9cd866e39f94
An initial fix went out with express@4.19.0, 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://github.com/koajs/koa/issues/1800 https://expressjs.com/en/4x/api.html#res.location
Affected versions: ["5.0.0-beta.2", "5.0.0-beta.1", "5.0.0-alpha.8", "5.0.0-alpha.7", "5.0.0-alpha.6", "5.0.0-alpha.5", "5.0.0-alpha.4", "5.0.0-alpha.3", "5.0.0-alpha.2", "5.0.0-alpha.1", "4.19.1", "4.19.0", "4.18.3", "4.18.2", "4.18.1", "4.18.0", "4.17.3", "4.17.2", "4.17.1", "4.17.0", "4.16.4", "4.16.3", "4.16.2", "4.16.1", "4.16.0", "4.15.5", "4.15.4", "4.15.3", "4.15.2", "4.15.1", "4.15.0", "4.14.1", "4.14.0", "4.13.4", "4.13.3", "4.13.2", "4.13.1", "4.13.0", "4.12.4", "4.12.3", "4.12.2", "4.12.1", "4.12.0", "4.11.2", "4.11.1", "4.11.0", "4.10.8", "4.10.7", "4.10.6", "4.10.5", "4.10.4", "4.10.3", "4.10.2", "4.10.1", "4.10.0", "4.9.8", "4.9.7", "4.9.6", "4.9.5", "4.9.4", "4.9.3", "4.9.2", "4.9.1", "4.9.0", "4.8.8", "4.8.7", "4.8.6", "4.8.5", "4.8.4", "4.8.3", "4.8.2", "4.8.1", "4.8.0", "4.7.4", "4.7.3", "4.7.2", "4.7.1", "4.7.0", "4.6.1", "4.6.0", "4.5.1", "4.5.0", "4.4.5", "4.4.4", "4.4.3", "4.4.2", "4.4.1", "4.4.0", "4.3.2", "4.3.1", "4.3.0", "4.2.0", "4.1.2", "4.1.1", "4.1.0", "4.0.0", "4.0.0-rc4", "4.0.0-rc3", "4.0.0-rc2", "4.0.0-rc1", "3.21.2", "3.21.1", "3.21.0", "3.20.3", "3.20.2", "3.20.1", "3.20.0", "3.19.2", "3.19.1", "3.19.0", "3.18.6", "3.18.5", "3.18.4", "3.18.3", "3.18.2", "3.18.1", "3.18.0", "3.17.8", "3.17.7", "3.17.6", "3.17.5", "3.17.4", "3.17.3", "3.17.2", "3.17.1", "3.17.0", "3.16.10", "3.16.9", "3.16.8", "3.16.7", "3.16.6", "3.16.5", "3.16.4", "3.16.3", "3.16.2", "3.16.1", "3.16.0", "3.15.3", "3.15.2", "3.15.1", "3.15.0", "3.14.0", "3.13.0", "3.12.1", "3.12.0", "3.11.0", "3.10.5", "3.10.4", "3.10.3", "3.10.2", "3.10.1", "3.10.0", "3.9.0", "3.8.1", "3.8.0", "3.7.0", "3.6.0", "3.5.3", "3.5.2", "3.5.1", "3.5.0", "3.4.8", "3.4.7", "3.4.6", "3.4.5", "3.4.4", "3.4.3", "3.4.2", "3.4.1", "3.4.0", "3.3.8", "3.3.7", "3.3.6", "3.3.5", "3.3.4", "3.3.3", "3.3.2", "3.3.1", "3.3.0", "3.2.6", "3.2.5", "3.2.4", "3.2.3", "3.2.2", "3.2.1", "3.2.0", "3.1.2", "3.1.1", "3.1.0", "3.0.6", "3.0.5", "3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0", "3.0.0-rc5", "3.0.0-rc4", "3.0.0-rc3", "3.0.0-rc2", "3.0.0-rc1", "3.0.0-beta7", "3.0.0-beta6", "3.0.0-beta4", "3.0.0-beta3", "3.0.0-beta2", "3.0.0-beta1", "3.0.0-alpha5", "3.0.0-alpha4", "3.0.0-alpha3", "3.0.0-alpha2", "3.0.0-alpha1", "2.5.11", "2.5.10", "2.5.9", "2.5.8", "2.5.7", "2.5.6", "2.5.5", "2.5.4", "2.5.3", "2.5.2", "2.5.1", "2.5.0", "2.4.7", "2.4.6", "2.4.5", "2.4.4", "2.4.3", "2.4.2", "2.4.1", "2.4.0", "2.3.12", "2.3.11", "2.3.10", "2.3.9", "2.3.8", "2.3.7", "2.3.6", "2.3.5", "2.3.4", "2.3.3", "2.3.2", "2.3.1", "2.3.0", "2.2.2", "2.2.1", "2.2.0", "2.1.1", "2.1.0", "2.0.0", "2.0.0-rc3", "2.0.0-rc2", "2.0.0-rc", "2.0.0-beta3", "2.0.0-beta2", "2.0.0-beta", "1.0.8", "1.0.7", "1.0.6", "1.0.5", "1.0.4", "1.0.3", "1.0.2", "1.0.1", "1.0.0", "1.0.0-rc4", "1.0.0-rc3", "1.0.0-rc2", "1.0.0-rc", "1.0.0-beta2", "1.0.0-beta", "0.14.1", "0.14.0"]
Secure versions: [4.22.0, 4.22.1, 5.2.0, 5.2.1]
Recommendation: Update to version 5.2.1.
Published date: 2014-09-12
CVEs: ["CVE-2014-6393"]
CVSS Score: 5.4
CVSS Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Coordinating vendor: ^Lift Security
Vulnerable versions of express do not specify a charset field in the content-type header while displaying 400 level response messages. The lack of enforcing user's browser to set correct charset, could be leveraged by an attacker to perform a cross-site scripting attack, using non-standard encodings, like UTF-7.
Affected versions: ["0.14.0", "0.14.1", "1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.0.4", "1.0.5", "1.0.6", "1.0.7", "1.0.8", "2.0.0", "2.1.0", "2.1.1", "2.2.0", "2.2.1", "2.2.2", "2.3.0", "2.3.1", "2.3.2", "2.3.3", "2.3.4", "2.3.5", "2.3.6", "2.3.7", "2.3.8", "2.3.9", "2.3.10", "2.3.11", "2.3.12", "2.4.0", "2.4.1", "2.4.2", "2.4.3", "2.4.4", "2.4.5", "2.4.6", "2.4.7", "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.5.4", "2.5.5", "2.5.6", "2.5.7", "2.5.8", "2.5.9", "2.5.10", "2.5.11", "3.0.0", "3.0.1", "3.0.2", "3.0.3", "3.0.4", "3.0.5", "3.0.6", "3.1.0", "3.1.1", "3.1.2", "3.2.0", "3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6", "3.3.0", "3.3.1", "3.3.2", "3.3.3", "3.3.4", "3.3.5", "3.3.6", "1.0.0-beta", "1.0.0-beta2", "1.0.0-rc", "1.0.0-rc2", "1.0.0-rc3", "1.0.0-rc4", "2.0.0-beta", "2.0.0-beta2", "2.0.0-beta3", "2.0.0-rc", "2.0.0-rc2", "2.0.0-rc3", "3.0.0-alpha1", "3.0.0-alpha2", "3.0.0-alpha3", "3.0.0-alpha4", "3.0.0-alpha5", "3.0.0-beta1", "3.0.0-beta2", "3.0.0-beta3", "3.0.0-beta4", "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.3.8", "3.4.0", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", "3.4.6", "3.4.7", "3.4.8", "3.5.0", "3.5.1", "3.5.2", "3.5.3", "3.6.0", "3.7.0", "3.8.0", "3.8.1", "3.9.0", "3.10.0", "3.10.1", "3.10.2", "3.10.3", "3.10.4", "3.10.5", "4.0.0", "4.1.0", "4.1.1", "4.1.2", "4.2.0", "4.3.0", "4.3.1", "4.3.2", "4.4.0", "4.4.1", "4.4.2", "4.4.3", "4.4.4", "4.4.5", "NodeJS/express/0.14.1", "NodeJS/express/1.0.5", "NodeJS/express/1.0.6", "NodeJS/express/2.0.0", "NodeJS/express/2.1.0", "NodeJS/express/2.1.1", "NodeJS/express/2.3.0", "NodeJS/express/2.3.3", "NodeJS/express/2.3.6", "NodeJS/express/2.3.8", "NodeJS/express/2.3.10", "NodeJS/express/2.3.12", "NodeJS/express/2.4.2", "NodeJS/express/2.4.6", "NodeJS/express/2.5.0", "NodeJS/express/2.5.5", "NodeJS/express/2.5.8", "NodeJS/express/2.5.10", "NodeJS/express/3.0.0", "NodeJS/express/3.0.2", "NodeJS/express/3.1.0", "NodeJS/express/3.1.1", "NodeJS/express/3.1.2", "NodeJS/express/3.2.0", "NodeJS/express/3.2.1", "NodeJS/express/3.2.2", "NodeJS/express/3.2.3", "NodeJS/express/3.2.6", "NodeJS/express/3.3.3", "NodeJS/express/3.3.4", "NodeJS/express/3.3.6", "NodeJS/express/1.0.0-beta2", "NodeJS/express/2.0.0-beta", "NodeJS/express/2.0.0-beta2", "NodeJS/express/2.0.0-rc2", "NodeJS/express/3.0.0-alpha2", "NodeJS/express/3.0.0-beta3", "NodeJS/express/3.0.0-beta6", "NodeJS/express/3.0.0-beta7", "NodeJS/express/3.0.0-rc1", "NodeJS/express/3.0.0-rc2", "NodeJS/express/3.0.0-rc3", "NodeJS/express/3.0.0-rc4", "NodeJS/express/3.0.0-rc5", "NodeJS/express/3.3.7", "NodeJS/express/3.4.0", "NodeJS/express/3.4.1", "NodeJS/express/3.4.2", "NodeJS/express/3.4.3", "NodeJS/express/3.4.6", "NodeJS/express/3.4.8", "NodeJS/express/3.5.0", "NodeJS/express/3.5.1", "NodeJS/express/3.5.2", "NodeJS/express/3.5.3", "NodeJS/express/3.6.0", "NodeJS/express/3.7.0", "NodeJS/express/3.8.0", "NodeJS/express/3.8.1", "NodeJS/express/3.9.0", "NodeJS/express/3.10.0", "NodeJS/express/3.10.1", "NodeJS/express/3.10.2", "NodeJS/express/3.10.3", "NodeJS/express/3.10.4", "NodeJS/express/0.14.0", "NodeJS/express/1.0.0", "NodeJS/express/1.0.1", "NodeJS/express/1.0.2", "NodeJS/express/1.0.3", "NodeJS/express/1.0.4", "NodeJS/express/1.0.7", "NodeJS/express/1.0.8", "NodeJS/express/2.2.0", "NodeJS/express/2.2.1", "NodeJS/express/2.2.2", "NodeJS/express/2.3.1", "NodeJS/express/2.3.2", "NodeJS/express/2.3.4", "NodeJS/express/2.3.5", "NodeJS/express/2.3.7", "NodeJS/express/2.3.9", "NodeJS/express/2.3.11", "NodeJS/express/2.4.0", "NodeJS/express/2.4.1", "NodeJS/express/2.4.3", "NodeJS/express/2.4.4", "NodeJS/express/2.4.5", "NodeJS/express/2.4.7", "NodeJS/express/2.5.1", "NodeJS/express/2.5.2", "NodeJS/express/2.5.3", "NodeJS/express/2.5.4", "NodeJS/express/2.5.6", "NodeJS/express/2.5.7", "NodeJS/express/2.5.9", "NodeJS/express/2.5.11", "NodeJS/express/3.0.1", "NodeJS/express/3.0.3", "NodeJS/express/3.0.4", "NodeJS/express/3.0.5", "NodeJS/express/3.0.6", "NodeJS/express/3.2.4", "NodeJS/express/3.2.5", "NodeJS/express/3.3.0", "NodeJS/express/3.3.1", "NodeJS/express/3.3.2", "NodeJS/express/3.3.5", "NodeJS/express/1.0.0-beta", "NodeJS/express/1.0.0-rc", "NodeJS/express/1.0.0-rc2", "NodeJS/express/1.0.0-rc3", "NodeJS/express/1.0.0-rc4", "NodeJS/express/2.0.0-beta3", "NodeJS/express/2.0.0-rc", "NodeJS/express/2.0.0-rc3", "NodeJS/express/3.0.0-alpha1", "NodeJS/express/3.0.0-alpha3", "NodeJS/express/3.0.0-alpha4", "NodeJS/express/3.0.0-alpha5", "NodeJS/express/3.0.0-beta1", "NodeJS/express/3.0.0-beta2", "NodeJS/express/3.0.0-beta4", "NodeJS/express/3.3.8", "NodeJS/express/3.4.4", "NodeJS/express/3.4.5", "NodeJS/express/3.4.7", "NodeJS/express/3.10.5", "NodeJS/express/4.0.0", "NodeJS/express/4.1.0", "NodeJS/express/4.1.1", "NodeJS/express/4.3.2", "NodeJS/express/4.4.0", "NodeJS/express/4.4.1", "NodeJS/express/4.4.4", "NodeJS/express/4.4.5", "NodeJS/express/4.1.2", "NodeJS/express/4.2.0", "NodeJS/express/4.3.0", "NodeJS/express/4.3.1", "NodeJS/express/4.4.2", "NodeJS/express/4.4.3"]
Secure versions: [4.22.0, 4.22.1, 5.2.0, 5.2.1]
Recommendation: Update express to a patched version.
287 Other Versions