org.mvnpm:react-router@7.4.1

  • latest version

    8.5.1

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    28 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm: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
    Inefficient Algorithmic Complexity

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity through inefficient route matching in the manifest endpoint. An attacker can cause excessive server load and degrade response times by sending unauthenticated targeted requests.

    Note: This is only exploitable if the application is running in Framework Mode.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade org.mvnpm:react-router to version 7.18.0 or higher.

    [7.0.0,7.18.0)
    • 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 org.mvnpm:react-router to version 7.18.0 or higher.

    [6.3.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 org.mvnpm:react-router to version 7.18.0 or higher.

    [6.15.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 org.mvnpm:react-router to version 6.30.4, 7.14.1 or higher.

    [6.15.0,6.30.4)[7.0.0,7.14.1)
    • H
    Allocation of Resources Without Limits or Throttling

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the serialization algorithm in the PrefetchPageLinks() function. An attacker can cause a denial of service by supplying specially crafted user input that is reflected and processed during single-fetch operations.

    Note:

    Users that utilise Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>) are not affected by this issue.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:react-router to version 7.14.0 or higher.

    [7.0.0,7.14.0)
    • H
    Allocation of Resources Without Limits or Throttling

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the __manifest endpoint. An attacker can exhaust server resources and cause service disruption by sending specially crafted requests that trigger unbounded path expansion.

    Note:

    Users that utilise Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>) are not affected by this issue.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:react-router to version 7.15.0 or higher.

    [7.0.0,7.15.0)
    • C
    Deserialization of Untrusted Data

    Affected versions of this package are vulnerable to Deserialization of Untrusted Data via the turbo-stream component in in Framework Mode. An attacker can execute arbitrary code on the remote server by sending specially crafted external requests that exploit an existing prototype pollution issue in the application code.

    Note:

    Users that are using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>) are not impacted.

    How to fix Deserialization of Untrusted Data?

    Upgrade org.mvnpm:react-router to version 7.14.2 or higher.

    [7.0.0,7.14.2)
    • H
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the navigation redirect process for loaders or actions in Framework Mode, Data Mode, or the unstable RSC modes. An attacker can execute arbitrary JavaScript code in the context of the user's browser by supplying a crafted URL that is used as a redirect target.

    Note:

    This issue does not impact applications using Declarative Mode <BrowserRouter>.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:react-router to version 7.12.0 or higher.

    [7.0.0,7.12.0)
    • M
    Cross-site Request Forgery (CSRF)

    Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) due to the improper origin checks of UI route submissions in server-side route action handlers in Framework Mode. An attacker can execute unauthorized actions by tricking a user into submitting a crafted POST request to a UI route.

    Note:

    This issue does not impact applications using Declarative Mode <BrowserRouter> or Data Mode createBrowserRouter/<RouterProvider>.

    How to fix Cross-site Request Forgery (CSRF)?

    Upgrade org.mvnpm:react-router to version 7.12.0 or higher.

    [7.0.0,7.12.0)
    • M
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the ScrollRestoration API when using the getKey or storageKey props during server-side rendering in Framework Mode. An attacker can execute arbitrary JavaScript code by supplying untrusted content to generate the keys. This is only exploitable if server-side rendering is enabled in Framework Mode and untrusted input is used for key generation.

    Note:

    This issue does not impact applications using Declarative Mode <BrowserRouter> or Data Mode createBrowserRouter/<RouterProvider> and server-side rendering in Framework Mode is disabled.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:react-router to version 7.12.0 or higher.

    [7.0.0,7.12.0)
    • M
    Cross-site Scripting (XSS)

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the Meta API in Framework Mode when generating script:ld+json tags during server-side rendering with untrusted content. An attacker can execute arbitrary JavaScript code by injecting malicious input into the metadata generation process.

    Note:

    This issue does not impact applications using Declarative Mode <BrowserRouter> or Data Mode createBrowserRouter/<RouterProvider>.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.mvnpm:react-router to version 7.9.0 or higher.

    [7.0.0,7.9.0)
    • 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 org.mvnpm:react-router to version 6.30.2, 7.9.6 or higher.

    [6.3.0,6.30.2)[7.0.0,7.9.6)
    • H
    Insufficient Verification of Data Authenticity

    Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity through the X-React-Router-Prerender-Data header. An attacker can manipulate the pre-rendered data by injecting a malicious JSON object into this header, potentially leading to data spoofing and cache poisoning.

    Note:

    This is only exploitable if the application is running in Framework mode, which is the default configuration, it has a caching system in place and the target page utilizes a loader.

    How to fix Insufficient Verification of Data Authenticity?

    Upgrade org.mvnpm:react-router to version 7.5.2 or higher.

    [7.0.0,7.5.2)
    • H
    Improper Handling of Exceptional Conditions

    Affected versions of this package are vulnerable to Improper Handling of Exceptional Conditions via the X-React-Router-SPA-Mode header. An attacker can disrupt the availability of the application by sending a crafted request that forces the server to switch to SPA mode, leading to an error that corrupts the page content.

    Note:

    This is only exploitable if the application is running in Framework mode, which is the default configuration, it has a caching system in place and the target page utilizes a loader.

    How to fix Improper Handling of Exceptional Conditions?

    Upgrade org.mvnpm:react-router to version 7.5.2 or higher.

    [7.2.0,7.5.2)