Sub2api
CVE-2026-27812
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend password reset request
-
DeliveryInject malicious Host/Forwarded header
-
ExploitAttacker domain embedded in reset link
-
ExecutionUser clicks poisoned link
-
PersistAttacker captures credentials
-
ImpactAccount takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
|
| Exploitation Conditions | Sub2API versions prior to 0.1.85 with 'forgot password' feature enabled. Server must trust Host or Forwarded HTTP headers without validation. No authentication required; exploitable against default configurations accepting unauthenticated password reset requests. |
| Impact | CVSS 9.1. AI API gateways process sensitive queries and responses between users and AI models. |
| Exploit ScenarioDerived | Attacker injects malicious content through the API that is improperly encoded in responses, affecting downstream consumers. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Improper output encoding in Sub2API AI API gateway allows injection attacks. The platform distributes AI API quotas without properly encoding output.
Earlier versions of this analysis (1)
Output encoding vulnerability in Sub2API AI API gateway.
RemediationAI
Update Sub2API.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-116 improper encoding of output in the AI API gateway platform.
Know when Sub2api gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
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.
Executive ViewAI
Sub2API versions prior to 0.1.85 contain a critical password reset poisoning vulnerability that allows attackers to redirect users to malicious sites and capture credentials, potentially compromising all API quota management and subscription data. This affects any organization using Sub2API as their AI API gateway, with no available patch currently requiring immediate containment measures.
Implement WAF rules to validate and restrict Host and Forwarded header values to known legitimate domains; segment Sub2API network access to trusted internal networks only; disable or restrict password reset functionality until patched; enable multi-factor authentication (MFA) on all Sub2API accounts to prevent credential-based account takeover; monitor all password reset requests and login attempts for anomalies; implement reverse proxy with header sanitization between users and Sub2API.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
NVD
CVE.org
EPSS
GitHub
Exploit-DB