Skip to content

deps: update Streamlit and Pillow for security fixes - #11

Merged
Rigare merged 1 commit into
mainfrom
fix/pillow-13-streamlit
Nov 12, 2026
Merged

Rigare merged 1 commit into
mainfrom
fix/pillow-13-streamlit

Conversation

@Rigare

@Rigare Rigare commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Update streamlit from 1.62.0 to 1.66.1, the first release that accepts Pillow 13 (pillow>=9.2.0,<14).
  • Pin Streamlit's otherwise transitive Pillow dependency to 13.0.0, which fixes all 59 OSV records / 41 unique GHSAs reported for 12.3.0.
  • Add a regression test that checks both direct pins, the installed distributions, and Streamlit's own Pillow requirement. Document the compatible update path and how to record the full resolution.

Security and reachability assessment

The original fresh Python 3.13 resolution contained 52 distributions, including streamlit==1.62.0 and pillow==12.3.0. An OSV-backed pip-audit of that installed environment found 59 records, all in Pillow. Attempting to combine Streamlit 1.62.0 with Pillow 13.0.0 fails dependency resolution; this PR does not force an inconsistent installation.

Inlayer's upload path passes raw bytes to trimesh with file_type="stl"; it does not call Pillow. As a runtime check, an STL upload and Plotly preview completed with PIL.Image.open patched to raise. The original environment had JPEG/JPEG2000 support, but no olefile and no registered FPX extension. This is a reachability assessment, not a claim that Pillow 12.3.0 would be safe for image-processing applications.

Reproducible resolution

A fresh, empty Python 3.13.5 environment installs 49 distributions with no resolver conflicts. Compared with the old constraints, the relevant transitive versions are pyarrow==26.0.1 and websockets==17.4; Streamlit no longer pulls in the three obsolete packages retained by an in-place upgrade. The complete pip freeze output is included in the OPE-6 audit report.

Verification

  • uv pip check --python .venv/bin/python — all 49 installed packages compatible.
  • python -m pytest — 534 passed on the fresh resolution.
  • OSV-backed pip-audit over all installed distributions — No known vulnerabilities found; direct Pillow 13.0.0 OSV query also returns zero records.
  • Streamlit runtime smoke on 127.0.0.1:8765 — /_stcore/health returned ok.
  • STL upload and Plotly preview with PIL.Image.open blocked — passed.
  • Independent diff review — no findings.
  • No local Docker/Podman runtime is available. GitHub Actions run 42736588664 passed: pytest (1m37s) plus the Docker test-stage build, runtime build, imports, and container health check (2m34s).

Audit / alerting follow-up

This is a point-in-time audit, not continuous monitoring. A separate change should evaluate a pinned OSV/pip-audit CI job and Dependabot version-update configuration. Repository security-alert settings require an explicit administrative decision and were not changed here. No release or production deployment is part of this PR.

@Rigare
Rigare merged commit 3ddd93e into main Nov 12, 2026
2 checks passed
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.

1 participant