Summary
An Open Redirect vulnerability exists in Taguette that allows attackers to craft malicious URLs that redirect users to arbitrary external websites after authentication. This can be exploited for phishing attacks where victims believe they are interacting with a trusted Taguette instance but are redirected to a malicious site designed to steal credentials or deliver malware.
Severity: Medium to High
Details
The application accepts a user-controlled next parameter and uses it directly in HTTP redirects without any validation. The vulnerable code is located in two places:
Location 1: Login Handler (taguette/web/views.py, lines 140-144)
def _go_to_next(self):
next_ = self.get_argument('next', '')
if not next_:
next_ = self.reverse_url('index')
return self.redirect(next_) # ← No validation of next_ parameter
This method is called after successful login (line 132) and when an already-logged-in user visits the login page (line 109).
Location 2: Cookies Prompt Handler (taguette/web/views.py, lines 79-85)
def post(self):
self.set_cookie('cookies_accepted', 'yes', dont_check=True)
next_ = self.get_argument('next', '')
if not next_:
next_ = self.reverse_url('index')
return self.redirect(next_) # ← No validation of next_ parameter
In both cases, if next_ is provided by the user, it is passed directly to self.redirect() without checking whether it points to the same host or is a relative URL.
PoC
Simply replace [your-taguette-instance] with your Taguette server domain and test these URLs in your browser:
Test 1: Cookies Prompt Redirect
https://[your-taguette-instance]/cookies?next=https://google.com
- Open the URL above in your browser
- Click "Accept cookies" button
- Result: You are redirected to
https://google.com(external site)
Test 2: Login Redirect
https://[your-taguette-instance]/login?next=https://google.com
- Open the URL above in your browser
- Log in with valid credentials
- Result: You are redirected to
https://google.com(external site)
Test 3: Already Logged In Redirect
https://[your-taguette-instance]/login?next=https://google.com
- First, log in to Taguette normally
- Then open the URL above
- Result: You are immediately redirected to
https://google.com
Note: We use google.com as a safe external site for testing. In a real attack, this would be a phishing site.
Example Fix
Add a validation function:
from urllib.parse import urlparse
def is_safe_url(url, host):
"""Check if URL is safe for redirect (relative or same host)."""
if not url:
return False
parsed = urlparse(url)
# Reject protocol-relative URLs (//evil.com)
if url.startswith('//'):
return False
# Allow relative URLs (no scheme and no netloc)
if not parsed.scheme and not parsed.netloc:
return True
# Allow same-host URLs
return parsed.netloc == host
Then update the vulnerable methods:
def _go_to_next(self):
next_ = self.get_argument('next', '')
if not next_ or not is_safe_url(next_, self.request.host):
next_ = self.reverse_url('index')
return self.redirect(next_)
Apply the same fix to the CookiesPrompt.post() method.
Impact
- Who is affected: All users of any Taguette instance running in multi-user mode
- Attack vector: Social engineering / phishing via crafted URLs
- Exploitability: Trivial - requires only crafting a URL with a malicious
nextparameter - Consequences:
- Credential theft through phishing
- Malware distribution
- Session hijacking
- Reputation damage to organizations running Taguette instances
The vulnerability is particularly dangerous because:
- The login page displayed is completely legitimate, building victim trust
- Users have just entered their credentials, making them more likely to enter them again on a fake "session expired" page
- The trusted domain in the URL makes the attack more convincing
Untrusted input controls a URL used for redirection, which can forward users to attacker-controlled sites. Typical impact: phishing and credential harvesting via a trusted domain.
CVE-2025-67502 has a CVSS score of 5.4 (Medium). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.5.2); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Remediation advice
Validate that the next parameter is either a relative URL or points to the same host before redirecting.
Frequently Asked Questions
- What is CVE-2025-67502? CVE-2025-67502 is a medium-severity open redirect vulnerability in taguette (pip), affecting versions <= 1.5.1. It is fixed in 1.5.2. Untrusted input controls a URL used for redirection, which can forward users to attacker-controlled sites.
- How severe is CVE-2025-67502? CVE-2025-67502 has a CVSS score of 5.4 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which versions of taguette are affected by CVE-2025-67502? taguette (pip) versions <= 1.5.1 is affected.
- Is there a fix for CVE-2025-67502? Yes. CVE-2025-67502 is fixed in 1.5.2. Upgrade to this version or later.
- Is CVE-2025-67502 exploitable, and should I be worried? Whether CVE-2025-67502 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2025-67502 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2025-67502? Upgrade
taguetteto 1.5.2 or later.