express@5.0.0-beta.3

Fast, unopinionated, minimalist web framework

  • latest version

    5.3.0

  • latest non vulnerable version

  • first published

    15 years ago

  • latest version published

    6 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the express package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting

    express is a minimalist web framework.

    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:

    1. The attacker should be able to 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

    How to fix Cross-site Scripting?

    Upgrade express to version 4.20.0, 5.0.0 or higher.

    <4.20.0>=5.0.0-alpha.1 <5.0.0