Skip to content

fix: github vulnerabilities (urllib, idna, pytest, black, requests, filelock, pytest)#223

Open
msweier wants to merge 2 commits into
mainfrom
patch_github_vuln
Open

fix: github vulnerabilities (urllib, idna, pytest, black, requests, filelock, pytest)#223
msweier wants to merge 2 commits into
mainfrom
patch_github_vuln

Conversation

@msweier

@msweier msweier commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

The following are patched (only idna is patched for python 3.9) :

  • idna: Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix (medium) — fixed for all Python versions
  • urllib3: Sensitive headers forwarded across origins in proxied low-level redirects (high) — fixed for Python 3.10+
  • urllib3: Decompression-bomb safeguards bypassed in parts of the streaming API (high) — fixed for Python 3.10+
  • pytest: Vulnerable tmpdir handling (medium) — fixed for Python 3.10+
  • requests: Insecure Temp File Reuse in extract_zipped_paths() utility function (medium) — fixed for Python 3.10+
  • black: Arbitrary file writes from unsanitized user input in cache file name (high) — fixed for Python 3.10+
  • filelock: TOCTOU Symlink Vulnerability in SoftFileLock (medium) — fixed for Python 3.10+
  • filelock: TOCTOU race condition which allows symlink attacks during lock file creation (medium) — fixed for Python 3.10+

Black formatting updated on

  • cwmscli/commands/commands_cwms.py
  • cwmscli/commands/users.py
  • tests/usgs/test_rating_ini_file_import.py

@msweier msweier requested review from Enovotny and krowvin as code owners June 10, 2026 14:36

@krowvin krowvin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to have some formatting changes in addition to version bumps.

Assuming you tested on your end I'm approving the version bump!

Comment thread cwmscli/commands/commands_cwms.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants