CVE-2026-136185: Prismor's local API had no auth and wildcard CORS, so any web page a developer visited could silently wipe the AI coding agent security policy (fixed 1.57.0)
Prismor is an open-source runtime security layer for AI coding agents that watches and blocks risky tool calls (secret leaks, prompt injection, supply-chain installs). Up to 1.56.0 its local dashboard API on 127.0.0.1:7070 accepted unauthenticated PUT requests to /api/policy/global and /api/policy/project and answered every request, including CORS preflights, with Access-Control-Allow-Origin: *. A malicious web page opened while Prismor was running could overwrite ~/.prismor/policy.yaml, turning off the guardrails it enforces on Claude Code, Codex and other agents, and read session and event data. Fixed in 1.57.0.
What it is
GHSA-9xjv-g2ch-rfhc (CWE-942), published 1 October 2026; CVE-2026-136185 published by NVD on 24 November 2026. Verified in source at tag 1.55.1: prismor/runtime/server.py do_PUT handlers had no auth check, and is_policy_editable() is documented in the code as a usability guard, not a security control.
Secondary issue: /api/policy/project took the workspace path from the JSON body with no containment check, so the page could create <any directory>/.prismor/policy.yaml with attacker-controlled YAML.
Affected: prismor (PyPI) <= 1.56.0. Fixed: 1.57.0 (released 1 October 2026).
How to check
- Run pip show prismor: 1.56.0 or earlier is affected.
- Compare ~/.prismor/policy.yaml and project .prismor/policy.yaml files with what you configured; an emptied or loosened policy is the sign of this attack.
How to fix
- Upgrade Prismor to 1.57.0 or later and restart its runtime server.
- Restore your global and project policies from a known-good copy and review agent sessions that ran while the policy may have been off.
- Treat any localhost dashboard for agent tooling as reachable from your browser: it needs auth and a strict Origin check.
pip show prismor | grep Version
ls -la ~/.prismor/policy.yaml && cat ~/.prismor/policy.yaml