SCA: security update for python-dotenv (GHSA-mf9w-mj56-hr94)

medium Tenable Cloud Security Plugin ID 440711

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-28684)

Solution

Update the python-dotenv library and its related packages to version 1.2.2 or later.

See Also

https://github.com/advisories/GHSA-mf9w-mj56-hr94

Plugin Details

Severity: Medium

ID: 440711

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 4/21/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.3

Percentile: 53.65

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.2

Temporal Score: 4.9

Vector: CVSS2#AV:L/AC:L/Au:S/C:N/I:C/A:C

CVSS Score Source: CVE-2026-28684

CVSS v3

Risk Factor: Medium

Base Score: 6.6

Temporal Score: 5.9

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/21/2026

Vulnerability Publication Date: 4/20/2026

Reference Information

CVE: CVE-2026-28684