Skip to main content

Reflex CVE-2025-62379

LOW
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2025-10-15 security-advisories@github.com
3.1
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft /auth-codespace URL with attacker redirect_to
  2. Exploit
    Lure victim into opening the link
  3. Execution
    Page assigns unvalidated redirect_to to a.href
  4. Impact
    Automatic 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi reflex no fix

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

Vendor (github) PRIMARY 3.1 LOW
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
vuln.today AI 3.1 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

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

EPSS Score
0.3%
Top 84% exploitable
Prevalence
Low
niche Python web framework, modest production deployment footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

16
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +16
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy