← All advisories
CVE-2026-132122mediumSecret exposure2026-11-18

CVE-2026-132122: agentic-radar could load a .env from a scanned repository, letting it redirect OPENAI_BASE_URL and capture your OpenAI API key (fixed 0.14.2)

agentic-radar, SPLX's open-source security scanner for agentic workflows, called load_dotenv() with no path when its CLI was imported. From 0.7.0 until 0.14.2, a .env file found by python-dotenv's upward search (for example in a scanned repository whose virtualenv lives inside it, or in a parent directory) could set variables such as OPENAI_BASE_URL, so agentic-radar scan openai-agents or --harden-prompts sent requests carrying your OpenAI API key to an attacker's host. 0.14.2 loads a .env file only from an explicit --env-file path.

01.

What it is

agentic_radar/cli.py ran load_dotenv() at import time. With no path, python-dotenv searches upward from the installed package directory, so a .env in a scanned repository (when the virtualenv lives inside it) or in any parent directory was loaded (CWE-15).

A malicious repository can set OPENAI_BASE_URL to an attacker-controlled host. The OpenAI-backed features (scan openai-agents and --harden-prompts) then send their API requests, with the user's OpenAI API key, to that host.

Affected: agentic-radar >= 0.7.0, < 0.14.2. Fixed in 0.14.2 (13 November 2026, PR #134), which adds --env-file PATH / AGENTIC_RADAR_ENV_FILE; variables already in the environment take precedence. The CVE was published on 18 November 2026.

02.

How to check

  1. Run pip show agentic-radar and check the version.
  2. If you scanned untrusted repositories with an affected version, look for .env files in them (or their parent directories) that set OPENAI_BASE_URL or other API base URLs.
03.

How to fix

  1. Upgrade agentic-radar to 0.14.2 or later. If you relied on automatic .env loading, pass --env-file .env or export the variables.
  2. If you may have been affected, rotate the OpenAI API key you used with agentic-radar.
  3. Scan untrusted repositories with a separate, low-limit API key.
pip show agentic-radar | grep -i '^version'
# does the repo you are scanning try to redirect API calls?
grep -rn 'OPENAI_BASE_URL\|OPENAI_API_BASE' --include='.env*' . .. 2>/dev/null
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.