A wildcard CORS (Cross-Origin Resource Sharing) misconfiguration and missing authentication in the local HTTP API allow remote attackers to overwrite security policies via cross-origin requests. An attacker can lure a developer to a malicious page that sends PUT requests to the '/api/policy/global' or '/api/policy/project' endpoints, which can result in the disabling of AI agent guardrails and the unauthorized reading of session and event data.