{"answers":{"affected":"4 open source packages ship an affected version, including @react-router/express and @remix-run/express.","exploited":"There is no known exploitation of CVE-2025-31137 in the wild and no public exploit code.","fix":"Upgrade @react-router/express to 7.4.1 or later.","what":"CVE-2025-31137 is a high-severity vulnerability in remix-run react-router, published on 1 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-31137 and fix it if it is affected.\n\nWhat it is: CVE-2025-31137 is a high-severity vulnerability in remix-run react-router, published on 1 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-31137 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @react-router/express (npm): affected from 7.0.0; fixed in 7.4.1\n- @react-router/express (npm): affected from 7.0.0; fixed in 7.4.1\n- @remix-run/express (npm): affected from 2.11.1; fixed in 2.16.3\n- @remix-run/express (npm): affected from 2.11.1; fixed in 2.16.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-31137/ (Markdown: https://insights.sbomify.com/CVE-2025-31137/index.md)","id":"CVE-2025-31137","markdown":"https://insights.sbomify.com/CVE-2025-31137/index.md","name":"CVE-2025-31137","record":{"aliases":["GHSA-4q56-crqp-v477"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"React Router library","requires_auth":"none","summary":"Attackers can spoof request URLs via Host headers in Remix/React Router apps, potentially bypassing security controls or causing redirects.","user_interaction":"not_required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-444","name":"Inconsistent Interpretation of HTTP Requests"}],"description":"React Router is a multi-strategy router for React bridging the gap from React 18 to React 19. There is a vulnerability in Remix/React Router that affects all Remix 2 and React Router 7 consumers using the Express adapter. Basically, this vulnerability allows anyone to spoof the URL used in an incoming Request by putting a URL pathname in the port section of a URL that is part of a Host or X-Forwarded-Host header sent to a Remix/React Router request handler. This issue has been patched and released in Remix 2.16.3 and React Router 7.4.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-04-23","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-04-23T10:37:35Z","kind":"github_poc","ref":"https://github.com/pouriam23/vulnerability-in-Remix-React-Router-CVE-2025-31137-","stars":1,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers","id":"CVE-2025-31137","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"open_redirect","year":"2025"},"n_packages":4,"n_references":1,"next":{"headline":"tarteaucitron.js allows UI manipulation via unrestricted CSS injection","id":"CVE-2025-31138"},"packages":[{"ecosystem":"npm","fixed":["7.4.1"],"introduced":["7.0.0"],"last_affected":[],"package":"@react-router/express","purl":null,"source":"GHSA-4q56-crqp-v477"},{"ecosystem":"npm","fixed":["7.4.1"],"introduced":["7.0.0"],"last_affected":[],"package":"@react-router/express","purl":"pkg:npm/%40react-router/express","source":"GHSA-4q56-crqp-v477"},{"ecosystem":"npm","fixed":["2.16.3"],"introduced":["2.11.1"],"last_affected":[],"package":"@remix-run/express","purl":null,"source":"GHSA-4q56-crqp-v477"},{"ecosystem":"npm","fixed":["2.16.3"],"introduced":["2.11.1"],"last_affected":[],"package":"@remix-run/express","purl":"pkg:npm/%40remix-run/express","source":"GHSA-4q56-crqp-v477"}],"prev":{"headline":"FreshRSS vulnerable to Cross-site Scripting by \u003ciframe\u003e'ing a vulnerable same-origin page in a feed entry","id":"CVE-2025-31136"},"products":["react-router"],"published":"2025-04-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-02","vendors":["remix-run"]},"summary":"Attackers can spoof request URLs via Host headers in Remix/React Router apps, potentially bypassing security controls or causing redirects.","url":"https://insights.sbomify.com/CVE-2025-31137/"}