Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
The python-dotenv package versions before 1.2.2 are affected. The set_key() and unset_key() functions follow symbolic links when rewriting .env files, so a local attacker who can write to the directory holding a .env file can cause a file the application can write to be overwritten, when the temporary file lies on a different filesystem. Upgrade python-dotenv to version 1.2.2 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 6.6 | Medium | 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0025, the 16th percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:11 UTC First seen by agentprime
- 31 Oct 2026, 14:11 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-mf9w-mj56-hr94
- OSV: GHSA-mf9w-mj56-hr94
- github.com/theskumar/python-dotenv/security/advisories/GHSA-mf9w-mj56-hr94
- nvd.nist.gov/vuln/detail/CVE-2026-28684
- github.com/theskumar/python-dotenv/commit/790c5c02991100aa1bf41ee5330aca75edc51311
- github.com/theskumar/python-dotenv/commit/790c5c02991100aa1bf41ee5330aca75edc51311.patch
- github.com/theskumar/python-dotenv
- github.com/theskumar/python-dotenv/releases/tag/v1.2.2