# CVE-2025-62379: Open Redirect in reflex-dev/reflex

- Severity: Low 3.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-02)
- Published: 2025-10-15T15:57:57.208Z
- Modified: 2026-10-19T16:10:00.260Z
- Also known as: GHSA-rfh5-c9h5-q8jm, PYSEC-2026-1868
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Reflex is a library to build full-stack web apps in pure Python. In versions 0.5.4 through 0.8.14, the /auth-codespace endpoint automatically assigns the redirect_to query parameter value directly to client-side links without any validation and triggers automatic clicks when the page loads in a GitHub Codespaces environment. This allows attackers to redirect users to arbitrary external URLs. The vulnerable route is only registered when a Codespaces environment is detected, and the detection is controlled by environment variables. The same behavior can be activated in production if the GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN environment variable is set. The vulnerability occurs because the code assigns the redirect_to query parameter directly to a.href without any validation and immediately triggers a click (automatic navigation), allowing users to be sent to arbitrary external domains. The execution condition is based on the presence of a sessionStorage flag, meaning it triggers immediately on first visits or in incognito/private browsing windows, with no server-side origin/scheme whitelist or internal path enforcement defenses in place. This issue has been patched in version 0.8.15. As a workaround, users can ensure that GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN is not set in a production environment.

(As written by CVE List.)

## Affected

- reflex-dev reflex: >= 0.5.4, < 0.8.15
- reflex (PyPI): from 0.5.4 up to 0.8.14

## Every score

- GitHub_M: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N`

## References

- <https://github.com/reflex-dev/reflex/security/advisories/GHSA-rfh5-c9h5-q8jm> (web)
- <https://github.com/reflex-dev/reflex/commit/ade12549f3c0ddab3d7382c581bc04a3c1f989ec> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62379> (advisory)
- <https://file.notion.so/f/f/d105d145-04bc-45c5-b46c-ed880895e9de/a86c3e3b-f67f-45d1-8fa2-4aa0ba7d0068/poc.mp4?table=block&id=26955717-5d2e-805a-b53c-e25ee03f1d4b&spaceId=d105d145-04bc-45c5-b46c-ed880895e9de&expirationTimestamp=1760508000000&signature=ZPp8PVldfGOh0gB5tVElRV6GN789R-EG0oxZgkFjjLU&downloadName=poc.mp4> (web)
- <https://github.com/reflex-dev/reflex> (package)
- <https://github.com/reflex-dev/reflex/blob/51f9f2c2f52cac4d66c07683a12bc0237311b6be/reflex/utils/codespaces.py#L18-L46> (web)
- <https://pypi.org/project/reflex> (package)
- <https://github.com/advisories/GHSA-rfh5-c9h5-q8jm> (advisory)

## Sources

- CVE List: [CVE-2025-62379](https://www.cve.org/CVERecord?id=CVE-2025-62379), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-rfh5-c9h5-q8jm](https://github.com/advisories/GHSA-rfh5-c9h5-q8jm), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-62379](https://nvd.nist.gov/vuln/detail/CVE-2025-62379), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1868](https://osv.dev/vulnerability/PYSEC-2026-1868), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-62379 · Whole record: https://cve.day/CVE-2025-62379.json · Rebuilt by cve.day 2026-11-25T22:59:06.459Z
