Vulnerability
CVE-2026-28684
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.
41 advisories report this vulnerability, across 9 ecosystems.
Advisories in Chainguard
- CGA-26g2-4gpr-pqj6
- CGA-272p-245j-w5m9
- CGA-2rjx-454c-c78g
- CGA-36m9-64mj-r3rq
- CGA-3hv3-j5f4-4jjx
- CGA-48g5-p7x7-j53g
- CGA-4mmg-3m9c-3c26
- CGA-5w83-3xfp-p5jx
- CGA-627h-qv7r-4295
- CGA-66v9-2qfj-hrfh
- CGA-78p9-7539-fmxx
- CGA-9g95-9978-9h33
- CGA-cvj6-m77f-v4hx
- CGA-fcr8-988v-8qr5
- CGA-j823-cqpv-hgvp
- CGA-p3qm-fhq5-g786
- CGA-px7m-292j-25v2
- CGA-qpx7-rw2x-phr2
- CGA-r4c5-c9fc-99g9
- CGA-r5h2-fx8m-m8v9
- CGA-vh82-v2m5-qvmg
- CGA-wp2w-r87m-3286
- CGA-wq7m-88rq-95h9
- CGA-x3c3-2xj5-fmgc
- CGA-xq6g-p6hh-374g
- CGA-xr4m-v4m4-vp49
- CGA-xw36-23mr-6vhq