Openclaw cli: OpenClaw: PIP_INDEX_URL and UV_INDEX_URL bypass host exec env sanitization and redirect Python package-index traffic (CVE-2026-41391)
Description
The OpenClaw CLI tool has a vulnerability where the environment variables PIP_INDEX_URL and UV_INDEX_URL can bypass host execution environment sanitization, allowing redirection of Python package-index traffic. This issue affects versions from 2026.1.29 up to but not including 2026.3.31. The vulnerability has been assigned CVE-2026-41391 and is rated with medium severity. A fix is available in version 2026.3.31 and later.
CVSS v3.1
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-41391 describes a vulnerability in the openclaw-cli npm package where the environment variables PIP_INDEX_URL and UV_INDEX_URL bypass host execution environment sanitization. This allows redirection of Python package-index traffic, potentially impacting the integrity of package management operations. The vulnerability is limited in scope to approved or allowlisted package-management execution paths and does not allow arbitrary remote code execution. Versions from 2026.1.29 up to 2026.3.31 are affected. The issue was fixed in version 2026.3.31 by commit 7ae1bb0c7799fd0cbd2d4de7b0f5b8039837ab8d.
Potential Impact
The vulnerability allows an attacker with limited privileges to redirect Python package-index traffic by bypassing environment sanitization. This could lead to integrity issues in package management, such as installing packages from unauthorized sources. The CVSS 3.1 score is 5.3 (medium), reflecting low confidentiality impact, high integrity impact, and no availability impact. The attack vector requires local access with low privileges and high attack complexity.
Mitigation Recommendations
A patch is available and should be applied by upgrading openclaw-cli to version 2026.3.31 or later. This update addresses the environment variable sanitization bypass. Users should ensure they are not running vulnerable versions (>=2026.1.29 <2026.3.31). No additional mitigation actions are specified by the vendor.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-41391
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac2459c12601ec6a3165d63
Added to database: 10/04/2026, 12:25:00 UTC
Last enriched: 10/04/2026, 12:46:12 UTC
Last updated: 10/04/2026, 16:08:38 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.