What happened
CVE-2026-138108 is a CWE-636 (not failing securely) flaw in GetPlanSettings in app/server/db/settings_helpers.go of plandex <= 2.2.1. The exploit is public; the vendor was informed via issue #377 but had not patched at time of publication.
Why it matters
plandex is an AI planning/terminal coding agent. A remote unauthenticated caller can influence the plan-settings retrieval path so the server returns/defaults to a different (or attacker-influenced) configuration, exposing or shifting the settings that govern the agent's behavior.
Attack vector
Remote request to the settings-helper path that causes GetPlanSettings to fail without a secure/restrictive default, returning a non-default configuration to an unauthenticated caller.
Affected systems
plexand-ai plandex <= 2.2.1 (Server)
Mitigation
No upstream patch yet — restrict access to the plandex server and monitor for the vendor fix (issue #377); upgrade to a future patched release when available.