Cross-site Scripting Affecting org.webjars.npm:express package, versions [,4.20.0) [5.0.0-alpha.1,5.0.0)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JAVA-ORGWEBJARSNPM-7926868
- published 11 Sep 2024
- disclosed 10 Sep 2024
- credit AdamKorcz
Introduced: 10 Sep 2024
CVE-2024-43796 Open this link in a new tabHow to fix?
Upgrade org.webjars.npm:express
to version 4.20.0, 5.0.0 or higher.
Overview
org.webjars.npm:express is a WebJar for express.
Affected versions of this package are vulnerable to Cross-site Scripting due to improper handling of user input in the response.redirect
method. An attacker can execute arbitrary code by passing malicious input to this method.
Note
To exploit this vulnerability, the following conditions are required:
The attacker should be able to 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