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

Published Nov 9, 2026
·
Updated

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/kiwiauth/views.py, the Confirm view (line ~113):

def getredirecturl(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/<activationkey>/?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 urlhasallowedhostandscheme() utility instead of a simple startswith check:

from django.utils.http import urlhasallowedhostandscheme

def getredirecturl(self, args, kwargs): self.url = self.request.GET.get("next", reverse("core-views-index")) if not urlhasallowedhostandscheme( self.url, allowedhosts={self.request.gethost()}, requirehttps=self.request.issecure(), ): 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

1 affected component
pip/kiwitcms<=12.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Kiwi TCMS to a version that resolves this vulnerability.

    Fixed in 16.2

Event History

Nov 9, 2026
Advisory Published
via GitHub·11:24 PM
Data Sourced
via GitHub·11:24 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Does the earlier redirect validation in version 16.1 prevent this issue?

No. Version 16.1 checks only whether the destination starts with a slash, so a value such as //evil.com/phishing passes validation and is interpreted by browsers as an external destination. Earlier releases lack this mitigation entirely.

2

What does an attacker need to exploit this?

An attacker can supply a protocol-relative value in the next parameter, such as //evil.com/phishing, in a link to the account confirmation endpoint. Exploitation requires a victim to follow that link; no attacker authentication is required.

3

How can I verify whether an instance is vulnerable?

Request the confirmation endpoint with a next value beginning with two slashes and observe the redirect response. An affected instance returns a 302 response with a Location header such as //evil.com/phishing rather than replacing it with the local index destination.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203