CVE-2026-27812: CWE-116: Improper Encoding or Escaping of Output in Wei-Shaw sub2api
Sub2API is an AI API gateway platform designed to distribute and manage API quotas from AI product subscriptions. A vulnerability in versions prior to 0.1.85 is a Password Reset Poisoning (Host Header / Forwarded Header trust issue), which allows attackers to manipulate the password reset link. Attackers can exploit this flaw to inject their own domain into the password reset link, leading to the potential for account takeover. The vulnerability has been fixed in version v0.1.85. If upgrading is not immediately possible, users can mitigate the vulnerability by disabling the "forgot password" feature until an upgrade to a patched version can be performed. This will prevent attackers from exploiting the vulnerability via the affected endpoint.
AI Analysis
Technical Summary
CVE-2026-27812 is a vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) found in Wei-Shaw's sub2api, an AI API gateway platform that manages API quotas for AI product subscriptions. The flaw exists in versions prior to 0.1.85 and manifests as a Password Reset Poisoning vulnerability caused by improper trust and validation of the Host Header or Forwarded Header during password reset link generation. Attackers can manipulate these headers to inject a malicious domain into the password reset URL sent to users. This manipulation enables attackers to redirect password reset links to attacker-controlled domains, facilitating phishing or direct account takeover by intercepting or tricking users into resetting their passwords on malicious sites. The vulnerability requires no authentication or user interaction, making it highly exploitable remotely. The CVSS 4.0 base score is 8.0 (high), reflecting the ease of exploitation and the high impact on confidentiality and integrity of user accounts. Wei-Shaw addressed this issue in version 0.1.85 by properly validating and encoding output to prevent header injection. Until patching is possible, disabling the 'forgot password' feature is advised to block the attack vector. No public exploits have been reported yet, but the vulnerability's nature and impact warrant immediate attention from affected users.
Potential Impact
The primary impact of CVE-2026-27812 is the potential for account takeover through manipulation of password reset links. This can lead to unauthorized access to user accounts, exposing sensitive subscription and API usage data, and potentially allowing attackers to abuse API quotas or disrupt service. For organizations relying on sub2api to manage AI product subscriptions, this could result in loss of customer trust, financial damage due to fraudulent API usage, and reputational harm. The vulnerability affects confidentiality and integrity severely, as attackers can reset passwords without user consent or authentication. Availability impact is minimal but could arise indirectly if attackers disrupt account access or service operations. Since exploitation requires no authentication or user interaction, the attack surface is broad, increasing risk across all deployments of vulnerable versions. Organizations with large user bases or critical AI service dependencies are particularly at risk.
Mitigation Recommendations
1. Upgrade sub2api to version 0.1.85 or later immediately to apply the official fix that properly validates and encodes headers in password reset links. 2. If upgrading is not feasible immediately, disable the 'forgot password' feature to prevent attackers from exploiting the password reset endpoint. 3. Implement strict validation and sanitization of Host and Forwarded headers at the web server or application gateway level to reject suspicious or unexpected header values. 4. Monitor logs for unusual password reset requests or anomalies in header values that could indicate exploitation attempts. 5. Educate users to verify URLs in password reset emails and report suspicious links. 6. Consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block header injection attempts targeting password reset functionality. 7. After patching, conduct penetration testing focused on header manipulation to ensure the vulnerability is fully remediated. 8. Review and enhance overall API gateway security posture, including rate limiting and anomaly detection, to mitigate abuse of password reset and other sensitive endpoints.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, Japan, South Korea, France, Netherlands, Singapore
CVE-2026-27812: CWE-116: Improper Encoding or Escaping of Output in Wei-Shaw sub2api
Description
Sub2API is an AI API gateway platform designed to distribute and manage API quotas from AI product subscriptions. A vulnerability in versions prior to 0.1.85 is a Password Reset Poisoning (Host Header / Forwarded Header trust issue), which allows attackers to manipulate the password reset link. Attackers can exploit this flaw to inject their own domain into the password reset link, leading to the potential for account takeover. The vulnerability has been fixed in version v0.1.85. If upgrading is not immediately possible, users can mitigate the vulnerability by disabling the "forgot password" feature until an upgrade to a patched version can be performed. This will prevent attackers from exploiting the vulnerability via the affected endpoint.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-27812 is a vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) found in Wei-Shaw's sub2api, an AI API gateway platform that manages API quotas for AI product subscriptions. The flaw exists in versions prior to 0.1.85 and manifests as a Password Reset Poisoning vulnerability caused by improper trust and validation of the Host Header or Forwarded Header during password reset link generation. Attackers can manipulate these headers to inject a malicious domain into the password reset URL sent to users. This manipulation enables attackers to redirect password reset links to attacker-controlled domains, facilitating phishing or direct account takeover by intercepting or tricking users into resetting their passwords on malicious sites. The vulnerability requires no authentication or user interaction, making it highly exploitable remotely. The CVSS 4.0 base score is 8.0 (high), reflecting the ease of exploitation and the high impact on confidentiality and integrity of user accounts. Wei-Shaw addressed this issue in version 0.1.85 by properly validating and encoding output to prevent header injection. Until patching is possible, disabling the 'forgot password' feature is advised to block the attack vector. No public exploits have been reported yet, but the vulnerability's nature and impact warrant immediate attention from affected users.
Potential Impact
The primary impact of CVE-2026-27812 is the potential for account takeover through manipulation of password reset links. This can lead to unauthorized access to user accounts, exposing sensitive subscription and API usage data, and potentially allowing attackers to abuse API quotas or disrupt service. For organizations relying on sub2api to manage AI product subscriptions, this could result in loss of customer trust, financial damage due to fraudulent API usage, and reputational harm. The vulnerability affects confidentiality and integrity severely, as attackers can reset passwords without user consent or authentication. Availability impact is minimal but could arise indirectly if attackers disrupt account access or service operations. Since exploitation requires no authentication or user interaction, the attack surface is broad, increasing risk across all deployments of vulnerable versions. Organizations with large user bases or critical AI service dependencies are particularly at risk.
Mitigation Recommendations
1. Upgrade sub2api to version 0.1.85 or later immediately to apply the official fix that properly validates and encodes headers in password reset links. 2. If upgrading is not feasible immediately, disable the 'forgot password' feature to prevent attackers from exploiting the password reset endpoint. 3. Implement strict validation and sanitization of Host and Forwarded headers at the web server or application gateway level to reject suspicious or unexpected header values. 4. Monitor logs for unusual password reset requests or anomalies in header values that could indicate exploitation attempts. 5. Educate users to verify URLs in password reset emails and report suspicious links. 6. Consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block header injection attempts targeting password reset functionality. 7. After patching, conduct penetration testing focused on header manipulation to ensure the vulnerability is fully remediated. 8. Review and enhance overall API gateway security posture, including rate limiting and anomaly detection, to mitigate abuse of password reset and other sensitive endpoints.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-24T02:31:33.267Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 699f8fb4b7ef31ef0b6dc8c1
Added to database: 2/26/2026, 12:11:32 AM
Last enriched: 3/5/2026, 11:35:01 AM
Last updated: 4/11/2026, 5:32:34 PM
Views: 179
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.
External Links
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.