PyPI / python-dotenv / 1.2.4

python-dotenv 1.2.4

Source
https://github.com/theskumar/python-dotenv
Artifact scanned
python_dotenv-1.2.4-py3-none-any.whl (wheel · 22.7 KB · SHA-256 42269a8a5b3f…)
Compared with
python_dotenv-1.2.3-py3-none-any.whl (0 signals introduced since)
Files
10 scanned, 5 skipped (binary, oversized, or unrecognised)
Signals
0 critical · 0 warn · 1 info
Scan time
1.8 s
LLM review
Reviewed by claude-haiku-5-5 (Anthropic): 1 of 1 warn and critical signal; 1 demoted to info.
Disclude version
4.3.0
Scanned (UTC)
2026-10-23 00:48

Signals

Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.

  1. info warn → info by review frame-introspection dotenv/main.py:366:17

    `sys._getframe` — call-stack frame introspection (ast pass, confidence 0.70)

            # will work for .py files
            frame = sys._getframe()
            current_file = __file__
    likely benign LLM, confidence 0.95 python-dotenv's find_dotenv uses sys._getframe to walk up the call stack and locate the calling module's file path.
    Reasoning

    This is python-dotenv's find_dotenv logic, which uses sys._getframe to locate the calling file's directory when the script is run interactively or from a frozen context. Frame introspection here is used only to find a path for reading a .env file, with no execution, network, or encoded payload involved. The comment above confirms the intent.

Reproduce This Scan

Run disclude locally to verify. These commands scan the published file; the "new in this release" marks come from comparing it with the previous release's file, which they don't repeat. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.

cargo install disclude --version 4.3.0
curl -fsSL -o python_dotenv-1.2.4-py3-none-any.whl https://files.pythonhosted.org/packages/60/d1/38f3a3405989a89ac18390803e70c6ad7c7760da4f9b83cbeca0c44a0c72/python_dotenv-1.2.4-py3-none-any.whl
printf '%s  %s\n' 42269a8a5b3fd54ffa6f3d84b18abed50064717576b4ecf03dc4a55d8aa04fdc python_dotenv-1.2.4-py3-none-any.whl | shasum -a 256 -c -
unzip -q python_dotenv-1.2.4-py3-none-any.whl -d pkg
disclude scan --untrusted --severity info pkg