# CVE-2026-41391: OpenClaw \< 2026.3.31 - Environment Variable Bypass in Package Index URL Handling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.8
- **CVSS:** 5.8 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: Low; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-184
- **Aliases:** GHSA-7ggg-pvrf-458v
- **Published:** 2026-04-02T20:57:44.000Z
- **Modified:** 2026-11-11T21:10:00.200Z

## Who should check

- Projects that depend on npm package openclaw (\< 2026.3.31)
- Anyone running OpenClaw \< 2026.3.31

## Description

OpenClaw before 2026.3.31 fails to properly sanitize PIP\_INDEX\_URL and UV\_INDEX\_URL environment variables in host execution contexts, allowing attackers to redirect Python package-index traffic. Attackers can exploit this bypass to intercept or manipulate package management operations by injecting malicious index URLs through unsanitized environment variables.

## Affected and fixed versions

- npm `openclaw`: affected \< 2026.3.31; fixed 2026.3.31 (osv)
- OpenClaw: \< 2026.3.31 (cvelist)

## Mitigation

- Upgrade openclaw to 2026.3.31 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-41391. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-41391.md
Affected: openclaw < 2026.3.31
Fixed in: 2026.3.31

Steps:
1. Search this machine and project for openclaw (npm), OpenClaw: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-41391 being exploited?

There is no confirmed exploitation: CVE-2026-41391 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-41391?

Medium: CVSS 5.8 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-41391?

openclaw \< 2026.3.31.

### Is there a fix for CVE-2026-41391?

Yes. Fixed in 2026.3.31. Upgrade openclaw to 2026.3.31 or later.

### How do I check if I'm affected by CVE-2026-41391?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/openclaw/openclaw/security/advisories/GHSA-7ggg-pvrf-458v>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-41391>
- patch: <https://github.com/openclaw/openclaw/commit/7ae1bb0c7799fd0cbd2d4de7b0f5b8039837ab8d>
- other: <https://www.vulncheck.com/advisories/openclaw-environment-variable-bypass-in-package-index-url-handling>
- other: <https://github.com/openclaw/openclaw>
- other: <https://github.com/openclaw/openclaw/releases/tag/v2026.3.31>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-41391>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7ggg-pvrf-458v> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-41391> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-41391>
