send@0.15.4 vulnerabilities

Better streaming static file server with Range and conditional-GET support

  • latest version

    1.2.0

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    3 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • L
    Cross-site Scripting

    send is a Better streaming static file server with Range and conditional-GET support

    Affected versions of this package are vulnerable to Cross-site Scripting due to improper user input sanitization passed to the SendStream.redirect() function, which executes untrusted code. An attacker can execute arbitrary code by manipulating the input parameters to this method.

    Note:

    Exploiting this vulnerability requires the following:

    1. The attacker needs 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 send to version 0.19.0, 1.1.0 or higher.

    <0.19.0>=1.0.0-beta.1 <1.1.0