react-router@6.30.3-pre-v6.0

Declarative routing for React

  • latest version

    8.3.0

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    10 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 navigation mechanisms when attacker-supplied paths containing a backslash are processed. An attacker can redirect users to unintended external sites by crafting malicious links or inputs.

    How to fix Open Redirect?

    Upgrade react-router to version 7.18.0 or higher.

    >=6.0.0 <7.18.0
    • M
    Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

    Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') in the deserializeErrors function during SSR hydration. An attacker can cause unexpected constructor execution on the client, potentially resulting in outbound network traffic, by supplying crafted input that overwrites certain aspects of errors caught by the SSR process.

    Note: This is only exploitable if the application is running in Framework Mode or Data Mode and performs manual SSR/hydration with code that allows attacker-controlled input to influence error deserialization.

    How to fix Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')?

    Upgrade react-router to version 7.18.0 or higher.

    >=6.4.0 <7.18.0
    • H
    Open Redirect

    Affected versions of this package are vulnerable to Open Redirect when certain URLs with path values starting with // are processed. An attacker can redirect users to external domains by supplying specially crafted protocol-relative URLs.

    Note:

    Users that utilise Declarative Mode (<BrowserRouter>) are not affected by this issue.

    How to fix Open Redirect?

    Upgrade react-router to version 6.30.4, 7.14.1 or higher.

    >=6.7.0 <6.30.4>=7.0.0 <7.14.1