MEDIUM · CVSS 3.1 6.1 EPSS 0.3% · 18th percentile CWE-601

CVE-2026-77433: Kiwi TCMS account confirmation open redirect through protocol-relative URLs

Published 2026-11-09 · Updated 2026-11-09 · Also known as GHSA-gcwf-c25f-p9rv

Summary

Kiwi TCMS contains an open redirect vulnerability in the account confirmation endpoint because it uses an incomplete `startswith("/")` check that fails to block protocol-relative URLs. Engineering and security teams managing Kiwi TCMS deployments must update their software.

Who is affected

An attacker can craft a malicious confirmation link containing a protocol-relative URL (such as `//evil.com`) via the `next` parameter, which redirects users to an external domain after confirming their account. This requires the attacker to send a crafted activation link to a user who is registering or to predict/intercept the activation key. The impact includes credential phishing, malware delivery, and social engineering against authenticated users.

Exploitability

The vulnerability has a CVSS 3.1 base score of 6.1 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating network accessibility, low attack complexity, no privileges required, user interaction required, and a changed scope. The EPSS score is 0.003 (percentile 0.233), and CISA KEV status is no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI kiwitcms >= 0, <= 12.4 not published -

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionRequired
ScopeChanged
ConfidentialityLow
IntegrityLow
AvailabilityNone

FAQ

What causes the open redirect vulnerability in Kiwi TCMS?

The vulnerability is caused by using `startswith("/")` to validate the `next` parameter in the account confirmation view, which allows protocol-relative URLs like `//evil.com` to bypass the validation check.

What is the recommended fix for this issue?

The recommended fix is to use Django's `url_has_allowed_host_and_scheme()` utility function to strictly validate the redirect target against allowed hosts and schemes.

Which versions of Kiwi TCMS are affected?

The vulnerability affects Kiwi TCMS versions introduced from 0 up to 12.4, as well as an incomplete mitigation present in version 16.1.

Original advisory description
## 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): 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: 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

References

Source records: GHSA-gcwf-c25f-p9rv (OSV.dev) · EPSS by FIRST, 2026-11-26.