CVE-2026-132122: agentic-radar 0.7.0 before 0.14.2 OpenAI API Key Leak via Untrusted .env Loading
agentic-radar 0.7.0 before 0.14.2 contains an untrusted configuration loading vulnerability that allows malicious repositories to inject environment variables by having loaddotenv() in agenticradar/cli.py load the scanned repository's .env file. Attackers can set OPENAIBASEURL to an attacker-controlled host so that scan openai-agents or --harden-prompts send requests carrying the user's OpenAI API key to the attacker.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
agentic-radarto a version that resolves this vulnerability.Fixed in 0.14.2
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of agentic-radar versions from 0.7.0 before 0.14.2 are exposed when they scan an untrusted repository and use scan openai-agents or the --harden-prompts option. The affected workflow requires the user to have an OpenAI API key available to the tool.
What does an attacker need to do to exploit it?
The attacker needs to provide a repository containing a malicious .env file. That file can set OPENAI_BASE_URL to an attacker-controlled host, causing requests that carry the user's OpenAI API key to be sent there.
Is user interaction required?
Yes. A user must scan the malicious repository and invoke scan openai-agents or --harden-prompts. The vulnerability is locally accessible and has high attack complexity according to the provided vector.
What version fixes the issue?
Version 0.14.2 addresses the issue. Versions before 0.14.2, starting with 0.7.0, are affected.