Reflex CVE-2025-62379
LOWAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft /auth-codespace URL with attacker redirect_to
-
ExploitLure victim into opening the link
-
ExecutionPage assigns unvalidated redirect_to to a.href
-
ImpactAutomatic click redirects victim to attacker domain
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerable GET /auth-codespace route is registered ONLY when a GitHub Codespaces environment is detected; in production this requires the GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN environment variable to be set (non-default, so the official workaround is to assert it is unset). Exploitation further requires luring a victim into opening an attacker-crafted link (UI:R). The redirect fires based on the absence of a sessionStorage flag, so it triggers on a victim's first visit and in incognito/private-browsing windows, with no server-side origin/scheme allowlist or internal-path enforcement. Limiting factors: non-default deployment configuration and required user interaction; no authentication is needed (PR:N). Affects Reflex versions 0.5.4 through 0.8.14, fixed in 0.8.15. |
| Impact | This is a genuinely low-priority issue, and the signals are largely consistent in pointing that way. The CVSS 3.1 base score is 3.1 (Low) with vector AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N: network-reachable but high attack complexity, no privileges, requires user interaction, and only a low integrity impact (no confidentiality or availability loss) - appropriate for an open redirect (CWE-601). EPSS reinforces this at 0.25% (16th percentile), indicating very low likelihood of widespread exploitation. The vulnerability is NOT in CISA KEV, so there is no evidence of active exploitation. A working proof-of-concept DOES exist (GitHub advisory GHSA-rfh5-c9h5-q8jm includes a curl example and a PoC video), so exploit code is public - but POC availability must not be conflated with active exploitation. The AC:H rating is well-justified by a critical limiting factor the raw score alone understates: the vulnerable /auth-codespace route is only registered when a GitHub Codespaces environment is detected, and reaching it in production requires the non-default GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN environment variable to be set. No SSVC decision data was provided in the input. Net: a real but minor open-redirect bug, primarily a phishing/credential-harvesting aid rather than a direct compromise vector; patch on a normal cycle rather than treating as an emergency. |
| Exploit ScenarioDerived | An attacker crafts a link to a victim's Reflex application such as https://victim-app/auth-codespace?redirect_to=https://attacker.example and delivers it via phishing. When the victim opens the link, the page assigns the attacker-controlled redirect_to value directly to a link's href and auto-triggers a click, silently sending the victim to the attacker's domain where credentials or further payloads can be harvested. A public PoC (curl example plus video) exists in the GitHub advisory, but exploitation only works where the Codespaces detection environment variable is present. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Open redirect in Reflex 0.5.4 through 0.8.14: the /auth-codespace route takes the redirect_to query parameter and assigns it directly to a link's href, then auto-clicks it on page load, so an unvalidated value can send victims to arbitrary external domains. The route only exists when a GitHub Codespaces environment is detected via environment variables, but it can surface in production if GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN is set, and exploitation requires luring a victim to a crafted link (CVSS 3.1, AV:N/AC:H/PR:N/UI:R with only integrity impact). Publicly available exploit code exists in the vendor advisory, and EPSS is low at 0.25% (16th percentile); there is no KEV listing.
RemediationAI
Vendor-released patch: upgrade to Reflex 0.8.15, which adds URL parsing plus same-hostname and .app.github.dev hostname enforcement before navigation (commit ade12549f3c0ddab3d7382c581bc04a3c1f989ec, advisory GHSA-rfh5-c9h5-q8jm). If upgrading is not immediately possible, apply the vendor workaround of ensuring GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN is unset in production - the advisory recommends asserting os.getenv("GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN") is None at startup so the vulnerable route is never registered; the trade-off is that Codespaces forwarding conveniences will not be available in that deployment. Additionally, avoid routing /auth-codespace through your reverse proxy in production environments, which removes the reachable path at the cost of breaking Codespaces port-forwarding flows if you rely on them. Treat the malicious redirect_to links as phishing vectors and monitor proxy logs for /auth-codespace requests with external redirect_to values.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Reflex generates code spaces redirect logic in reflex/utils/codespaces.py, where a redirect_script() helper emits client-side JavaScript. Before the fix the script read params.get("redirect_to") and wrote it straight into a.href with no scheme/host validation, then simulated a click, driving an unvalidated navigation (CWE-601, URL Redirection to Untrusted Site). Because the trigger is gated on a sessionStorage flag rather than any server-side allowlist, it fires on first visits and in private browsing where sessionStorage is empty. The upstream fix (commit ade12549f3c0ddab3d7382c581bc04a3c1f989ec) parses the target with new URL() and enforces two checks: the target must share the same hostname structure as the current Codespaces URL (sameHostnameDifferentPort compares hostname labels and the hyphen-delimited unique name, permitting only port differences), and the target hostname must end in .app.github.dev. Failures log a console warning and abort navigation, effectively introducing the origin/scheme allowlist that was previously absent. The vulnerable route registration itself is driven by environment detection, which is why deployment configuration determines exposure.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
Requires non-default Codespaces env var and a victim clicking a crafted link, so AC:H and UI:R; unauthenticated (PR:N); only a redirect so I:L with C:N and A:N.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
NVD
CVE.org
EPSS
GitHub
Exploit-DB