{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "pypi", "product": "kiwitcms", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "12.4"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://github.com/kiwitcms/Kiwi"}, {"url": "https://github.com/kiwitcms/Kiwi/commit/65d8f7c2743d7f06a4fca77c060b9d561f02f948"}, {"url": "https://github.com/kiwitcms/Kiwi/pull/4458"}, {"url": "https://github.com/kiwitcms/Kiwi/releases/tag/v16.2"}, {"url": "https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-gcwf-c25f-p9rv"}, {"url": "https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-hmj5-jm8h-h9fh"}], "descriptions": [{"lang": "en", "value": "## Summary\n\nIn 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.\n\n## Vulnerable Code\n\nIn `tcms/kiwi_auth/views.py`, the `Confirm` view (line ~113):\n\n    def get_redirect_url(self, *args, **kwargs):\n        self.url = self.request.GET.get(\"next\", reverse(\"core-views-index\"))\n        if not self.url.startswith(\"/\"):\n            self.url = reverse(\"core-views-index\")\n\nThe 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).\n\n## Proof of Concept\n\n    GET /confirm/<activation_key>/?next=//evil.com/phishing HTTP/1.1\n    Host: kiwi.example.com\n\nResponse:\n\n    HTTP/1.1 302 Found\n    Location: //evil.com/phishing\n\nThe browser follows the redirect to `https://evil.com/phishing`.\n\nVerification:\n\n    >>> url = \"//evil.com/phishing\"\n    >>> url.startswith(\"/\")\n    True  # passes the check!\n\n## Impact\n\nAn attacker can craft a confirmation link that, after the user confirms their account, redirects them to a phishing page. This is useful for:\n\n- Credential phishing (fake login page on attacker domain)\n- Malware delivery after trusted action\n- Social engineering (user trusts the link because it's from the legitimate Kiwi TCMS instance)\n\nThe attack requires sending a crafted activation link to a user who is registering, or intercepting/predicting the activation key.\n\n## Suggested Fix\n\nUse Django's `url_has_allowed_host_and_scheme()` utility instead of a simple `startswith` check:\n\n    from django.utils.http import url_has_allowed_host_and_scheme\n\n    def get_redirect_url(self, *args, **kwargs):\n        self.url = self.request.GET.get(\"next\", reverse(\"core-views-index\"))\n        if not url_has_allowed_host_and_scheme(\n            self.url,\n            allowed_hosts={self.request.get_host()},\n            require_https=self.request.is_secure(),\n        ):\n            self.url = reverse(\"core-views-index\")\n\nThis properly rejects protocol-relative URLs, absolute URLs to other hosts, and other bypass patterns.\n\nFixed in Version 16.2"}, {"lang": "en", "value": "Kiwi TCMS account confirmation open redirect through protocol-relative URLs"}], "providerMetadata": {"orgId": "28c92f92-d60d-412d-b760-e73465c3df22", "shortName": "pypi", "dateUpdated": "2026-11-09T23:24:14Z", "x_subShortName": "pypi"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}], "affected": [{"vendor": "unknown", "product": "unknown", "defaultStatus": "unknown"}], "references": [{"url": "https://github.com/kiwitcms/kiwitcms/commit/65d8f7c2743d7f06a4fca77c060b9d561f02f948"}, {"url": "https://github.com/kiwitcms/kiwitcms/pull/4458"}, {"url": "https://github.com/kiwitcms/kiwitcms/releases/tag/v16.2"}, {"url": "https://github.com/kiwitcms/kiwitcms/security/advisories/GHSA-gcwf-c25f-p9rv"}], "descriptions": [{"lang": "en", "value": "Kiwi TCMS is an open source test management system. From 16.1 until 16.2, the account confirmation page’s incomplete validation of the next parameter accepts protocol-relative URLs because the version 16.1 fix for CVE-2026-54724 only requires the value to start with a slash. An unauthenticated attacker can craft a confirmation URL on a trusted Kiwi TCMS hostname that redirects a user to an external site, enabling phishing and related downstream confidentiality or integrity impacts when the user follows the link. This issue is fixed in version 16.2."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-601", "description": "CWE-601"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "DISCARDED_CNA", "dateUpdated": "2026-11-17T20:17:55Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2026-77433", "state": "PUBLISHED", "dateUpdated": "2026-11-17T23:17:59Z", "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "datePublished": "2026-11-17T20:17:55Z", "assignerShortName": "GitHub_M"}, "dataVersion": "5.0"}