Live threats

All CVEs / Saurabh-kumar

CVE-2026-28684Saurabh-kumar Python-dotenv

Medium 6.6

Priority
40
CVSS 3.1
6.6
EPSS
—
Auth required
Yes
Published
Apr 20, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-59, CWE-61
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H

What happens

python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, apply the patch manually.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python-dotenv.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI python-dotenv < 1.2.2 1.2.2 pip install "python-dotenv>=1.2.2"
PyPI python-dotenv < 1.2.2 1.2.2 pip install "python-dotenv>=1.2.2"

Per OSV / GitHub Advisories (GHSA-mf9w-mj56-hr94, PYSEC-2026-2270). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
saurabh-kumarpython-dotenv< 1.2.2

Official advisories

Also: SUSE (+1)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.