Kimi cli: Authlib OAuth 2.0 has Open Redirect in Authorization API that allows attacker-controlled redirect_uri through unsupported response_type (CVE-2026-41479)
Description
Authlib's OAuth 2.0 authorization endpoint in kimi-cli versions prior to 1.6.10, certain 1.7.x versions, and some 2.x versions contains an open redirect vulnerability. This occurs when an unsupported response_type is used along with an attacker-controlled redirect_uri, allowing redirection without client validation or user authentication. The flaw exists because the server returns a redirect response to the supplied redirect_uri before validating the client or redirect URI. This vulnerability has a CVSS score of 5.4 (medium severity) and affects multiple versions as specified. A patch is available to address this issue.
CVSS v3.1
Score 5.4medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Authlib's OAuth 2.0 authorization endpoint arises from the handling of unsupported response_type values. When such a response_type is received, the server raises an UnsupportedResponseTypeError that includes the raw redirect_uri from the request without validating the client or the redirect URI. The error handling mechanism then issues a 302 redirect to this attacker-controlled URI, effectively creating an unauthenticated open redirect. This behavior is reachable through normal OAuth2 authorization flows in Flask and Django integrations using Authlib. The issue was confirmed in tag v1.6.6 and later commits, and a proof-of-concept demonstrates the redirect to arbitrary URLs without client registration or user authentication.
Potential Impact
An attacker can exploit this vulnerability to perform an open redirect attack by supplying a malicious redirect_uri with an unsupported response_type parameter. This can lead to phishing or other social engineering attacks by redirecting users to attacker-controlled sites. The vulnerability does not require a valid client, authenticated user, or prior state, making exploitation straightforward. However, it does not directly allow token theft or privilege escalation. The CVSS 3.1 score is 5.4, indicating medium severity with low complexity and no privileges required.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade to fixed versions of kimi-cli that address this issue. Until patched, avoid using unsupported response_type values and validate redirect_uri parameters strictly. The vendor advisory confirms the availability of a fix; therefore, applying the official patch is the recommended remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w8p2-r796-3vmq
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-41479"]
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a5bd3192a4a8d59892850a2
Added to database: 07/18/2026, 19:25:13 UTC
Last enriched: 10/10/2026, 21:50:52 UTC
Last updated: 10/16/2026, 06:48:16 UTC
Views: 161
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.