Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-40181: React Router is a router for React

24
Routine
MEDIUM 6.1UPGRADE

CVE-2026-40181 is a medium-severity flaw (CVSS 6.1) affecting react-router. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

React Router is a router for React. In versions 7.0.0 through 7.14.0 and 6.7.0 through 6.30.3, certain URLs passed to the redirect function can trigger an open redirect to an external domain due to path values starting with // being reinterpreted as protocol-relative URLs. The level of impact depends on the validation done by the application prior to returning the redirect. This does not impact applications using Declarative Mode (<BrowserRouter>

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score6.1 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.2% (top 87%)
CISA exploited listNo
WeaknessCWE-601
Published2026-06-02
Last modified2026-08-04
Publisher (CNA): GitHub, Inc. · Vendor: shopify

Share: LinkedIn · X · Reddit

Last updated 2026-08-04 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

shopify react-router UPGRADE
Affected: >= 6.7.0 and < 6.30.4 · >= 7.0.0 and < 7.14.1
Fixed in: 6.30.4, 7.14.1
Safe to downgrade to: a release before 6.7.0
1. Check installed version
npm ls react-router
2. UPGRADE to 6.30.4
npm install react-router@">=6.30.4"
3. If no update is available yet, DOWNGRADE to a release before 6.7.0
npm view react-router versions npm install react-router@"<6.7.0"
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-40181?

react-router: upgrade to 6.30.4, 7.14.1. Exact commands for each OS are on this page.

Is CVE-2026-40181 being exploited?

CVE-2026-40181 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-40181 affect?

CVE-2026-40181 affects react-router. Severity is medium (CVSS 6.1). React Router is a router for React. In versions 7.0.0 through 7.14.0 and 6.7.0 through 6.30.3, certain URLs passed to the redirect function can trigger an open redirect to an external domain due to path values starting with // being reinter

How urgent is CVE-2026-40181?

Priority 24/100. No elevated risk signals yet.

Software pages

React vulnerabilities · Shopify vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.