Medium

Kiwi TCMS account confirmation open redirect through protocol-relative URLs

  • Disclosed: 09.11.2026
  • Updated: 10.11.2026 01:17

Summary

In Kiwi TCMS version 16.1, the fix for CVE-2026-54724 (open redirect via unvalidated next parameter) in the account confirmation endpoint is incomplete. The validation uses startswith("/") to check if the redirect URL is local, but this is bypassed by protocol-relative URLs like //evil.com which start with / but redirect the browser to an external attacker-controlled domain. 16.1’s incomplete mitigation still allows protocol-relative destinations and earlier releases lack the mitigation.

Vulnerable Code

In tcms/kiwi_auth/views.py, the Confirm view (line ~113):

python
def get_redirect_url(self, *args, **kwargs):
    self.url = self.request.GET.get("next", reverse("core-views-index"))
    if not self.url.startswith("/"):
        self.url = reverse("core-views-index")

The check startswith("/") passes for //evil.com because it begins with /, but browsers interpret //evil.com as a protocol-relative URL that redirects to https://evil.com (or http://evil.com depending on the current page's protocol).

Proof of Concept

GET /confirm/<activation_key>/?next=//evil.com/phishing HTTP/1.1
Host: kiwi.example.com

Response:

HTTP/1.1 302 Found
Location: //evil.com/phishing

The browser follows the redirect to https://evil.com/phishing.

Verification:

>>> url = "//evil.com/phishing"
>>> url.startswith("/")
True  # passes the check!

Impact

An attacker can craft a confirmation link that, after the user confirms their account, redirects them to a phishing page. This is useful for:

  • Credential phishing (fake login page on attacker domain)
  • Malware delivery after trusted action
  • Social engineering (user trusts the link because it's from the legitimate Kiwi TCMS instance)

The attack requires sending a crafted activation link to a user who is registering, or intercepting/predicting the activation key.

Suggested Fix

Use Django's url_has_allowed_host_and_scheme() utility instead of a simple startswith check:

python
from django.utils.http import url_has_allowed_host_and_scheme

def get_redirect_url(self, *args, **kwargs):
    self.url = self.request.GET.get("next", reverse("core-views-index"))
    if not url_has_allowed_host_and_scheme(
        self.url,
        allowed_hosts={self.request.get_host()},
        require_https=self.request.is_secure(),
    ):
        self.url = reverse("core-views-index")

This properly rejects protocol-relative URLs, absolute URLs to other hosts, and other bypass patterns.

Fixed in Version 16.2

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) kiwitcms <= 12.4 no fix

References

CVSS score 6.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-601
Platform
Python (PyPI)
Package
kiwitcms
Disclosed
09.11.2026
Updated
10.11.2026 01:17

Sources and licenses

OSV / GitHub Advisory Database - GHSA-gcwf-c25f-p9rv - CC BY 4.0

Vulnerability history: kiwitcms

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (14) in the archive
Total entries
14
First → latest
11.2022 11.2026
Without a fix
4
Exploited in attacks
0

Severity breakdown

  • High 7
  • Medium 4
  • Low 3

Disclosures per year

  1. 2022: 1
  2. 2023: 9
  3. 2024: 0
  4. 2025: 0
  5. 2026: 4
Severity:
  1. Kiwi TCMS account confirmation open redirect through protocol-relative URLs this entry
    Medium · 6.1 CVE-2026-77433 <= 12.4 no fix
  2. High · 7.7 CVE-2023-30613 < 12.2 12.2
  3. High · 7.6 CVE-2023-27489 < 12.1 12.1
  4. High · 7.5 CVE-2023-25156 < 12.0 12.0
  5. High · 7.5 CVE-2023-25171 < 12.0 12.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.