react-router@4.2.0 vulnerabilities

Declarative routing for React

  • latest version

    7.12.0

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    3 days ago

  • licenses detected

    • >=0.0.0-experimental-004e483a8 <0.0.0; >=0.4.0
  • Direct Vulnerabilities

    Known vulnerabilities in the react-router 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
    • H
    Open Redirect

    Affected versions of this package are vulnerable to Open Redirect via the resolvePath() function when used with navigate, <Link>, or redirect. An attacker can cause the application to redirect users to external, potentially malicious URLs by supplying crafted paths.

    Note:

    This is only exploitable if untrusted content is passed into navigation paths in the application code.

    How to fix Open Redirect?

    Upgrade react-router to version 6.30.2, 7.9.6 or higher.

    <6.30.2>=7.0.0 <7.9.6