Summary
CVE-2026-111823 is an authentication bypass vulnerability in Mage OSS (mage-ai). Versions through 0.9.80 continue session creation when they receive an unknown OAuth provider. The vulnerability is rated Critical (CVSS 9.8).
Technical details
- Root cause: the session creation logic doesn’t act on an unrecognized OAuth provider (CWE-390, Detection of Error Condition Without Action). It proceeds with session creation instead of rejecting the request.
- Trigger conditions: according to a public PoC write-up, the attacker needs a valid
X-API-KEYheader and knowledge of a target user’s email address. The write-up also states the instance hasrequire_user_authentication=true, which is the default in 0.9.78 and later. - Attack vector: network. An unauthenticated attacker sends a request to
POST /api/sessionswith an invalid provider name, the target’s email and an arbitrary token. - Impact: per the public write-up, the application returns a valid session JWT, which gives access to the API as the targeted user. This affects confidentiality, integrity and availability.
Affected software
- Mage OSS (mage-ai) versions 0 through 0.9.80, before commit 76c4f46.
Severity
- CVSS v3.1 base score 9.8 (Critical):
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: the CVE record lists no patched release. The fix is in commit 76c4f46 (pull request #6204), which rejects unknown OAuth providers before a session is created. Check whether your Mage version includes this fix and upgrade to a build that does as soon as one is available.
- Until then, restrict network access to Mage instances so they aren’t reachable from the internet. Allow only trusted networks or a VPN, or put the instance behind an authenticating reverse proxy.
- Review the Mage session and API logs for
POST /api/sessionsrequests that use unexpected provider values.

