Loading advisory.
Loading advisory.
Kiwi TCMS account confirmation open redirect through protocol-relative URLs
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.
Published 2026-11-09 23:24 UTC · Modified 2026-11-17 22:25 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| kiwitcms | PyPI | <= 12.4 versions 10.0, 10.1, 10.2, 10.3, 10.3.999, 10.4, 10.5, 11.0, 11.1, 11.3, 11.4, 11.5, 11.6, 11.7, 12.0, 12.1, 12.2, 12.3, 12.4, 6.10 and 29 more | No patch yet | No command until a fix exists. |
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.
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).
GET /confirm/<activation_key>/?next=//evil.com/phishing HTTP/1.1
Host: kiwi.example.comResponse:
HTTP/1.1 302 Found
Location: //evil.com/phishingThe browser follows the redirect to https://evil.com/phishing.
Verification:
>>> url = "//evil.com/phishing"
>>> url.startswith("/")
True # passes the check!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.
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
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.002 on 2026-11-24 to 0.003 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.002 | first score | v2026.06.15 |
| 2026-11-26 | 0.003 | 0.002 | v2026.06.15 |