CVE-2026-138113: Synaplan AI platform's public legacy /api.php took the user from a user_id parameter, letting anyone mint an admin API key and read other users' profiles (fixed 5.6.7)
Synaplan (metadist/synaplan) is an open-source, self-hostable AI platform that connects local and cloud models to a knowledge base and to channels like web chat widgets, WhatsApp and email. Its legacy WordPress-compatibility endpoint /api.php was public and resolved the acting user from a user_id request parameter instead of the session. With no credentials, an attacker could read any user's profile, create an API key for any verified user including the administrator (full account takeover), and write to any user's chat widget settings. Fixed in 5.6.7.
What it is
backend/config/packages/security.yaml marked ^/api\.php as PUBLIC_ACCESS, and LegacyApiController::getUserIdFromRequest() returned the user_id query/body parameter as the acting user (CWE-287).
action=getProfile returned any user's profile; action=createApiKey returned a working API key for the chosen user (the PoC shows isAdmin:true on /api/v1/auth/me); action=saveWidget wrote widget prompts and auto-messages as the victim.
Limits from the advisory: key issuance needs the target to have a verified email and a plan (the admin qualifies); the profile read and widget write have no such gate. Every deployment exposing /api.php was affected by default.
Affected: GitHub advisory lists <= 5.6.2; the CVE record (VulDB) says up to 5.6.6. Patched in v5.6.7 (released 4 November 2026, commit 644267a). GitHub advisory published 4 November 2026; NVD published CVE-2026-138113 on 29 November 2026. A public exploit exists (the PoC in the advisory). Reported by T0x1cG. VulDB also assigned CVE-2026-138112 (published by NVD on 29 November 2026) to the createApiKey part of the same issue, same fix in 5.6.7.
How to check
- Check the running Synaplan version (release tag or image): anything before 5.6.7 is affected.
- Review web logs for requests to /api.php with action=createApiKey, getProfile or saveWidget, and list API keys you did not create.
How to fix
- Upgrade Synaplan to 5.6.7 or later.
- After upgrading, revoke and reissue all API keys, and check widget prompts and auto-messages for changes you didn't make.
- If you can't upgrade right away, block /api.php at your reverse proxy.
# look for abuse of the legacy endpoint in your proxy logs
grep -E '/api\.php\?action=(createApiKey|getProfile|saveWidget)' /var/log/nginx/access.log