Repository navigation
Description
Summary
The lower bounds in pyproject.toml and requirements.txt are far below what CI tests and allow known-vulnerable Pillow versions for pip installs. The dev extras have also drifted from requirements-dev.in.
Where
pyproject.toml:33-39(Pillow>=9.0.0,pywin32>=227,pyautogui>=0.9.53,pystray>=0.19.4)requirements.txt:3-7pyproject.toml:42-54(optional dependencies)requirements-dev.in:9-12tasks.bat:24-25,Makefile:14-16
Details
- Pillow below 10.3.0 has public CVEs, and the app decodes user-chosen images. CI only installs the lock, so the floors are never exercised, and pyscreeze already needs Pillow>=9.3.0.
-
requirements-dev.insays its bounds mirror the[dev]and[build]extras, butpip-auditis missing from[dev]and[build]hassetuptools>=61.0while[build-system]and dev.in have>=77. - Install scripts run
pip install --upgrade pip, then install a lock pinningpip==26.2.1, so the pip version flips between installs.
Impact
Users installing from PyPI or source with older packages can get untested or vulnerable combinations; pip install -e .[dev] users cannot run make audit.
Suggested fix
Raise the floors to versions CI actually tests (for example Pillow>=12, pywin32>=306, pyautogui>=0.9.54) in both files. Add pip-audit to [dev] and setuptools>=77 to [build]. Drop the --upgrade pip step or exclude pip from the lock (--no-emit-package pip). Optionally add a CI job resolving with --resolution lowest-direct.
Acceptance criteria
- Floors match tested versions in pyproject and requirements.txt
-
[dev]andrequirements-dev.inagree
Getting started
- Relevant files:
pyproject.toml,requirements.txt,requirements-dev.in,tasks.bat,Makefile - How to run tests:
make check(Git Bash) ortasks.bat lint,tasks.bat typecheck,tasks.bat test(cmd). Single test:python -m pytest tests/test_x.py::TestClass::test_name --no-cov - Related docs:
CONTRIBUTING.md,docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at 9968dc8. Severity: medium. Effort: S. audit-key: dependencies|pyproject.toml|dependencies
Activity