Repository navigation
deps: update Streamlit and Pillow for security fixes - #11
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
streamlitfrom 1.62.0 to 1.66.1, the first release that accepts Pillow 13 (pillow>=9.2.0,<14).Security and reachability assessment
The original fresh Python 3.13 resolution contained 52 distributions, including
streamlit==1.62.0andpillow==12.3.0. An OSV-backedpip-auditof 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
trimeshwithfile_type="stl"; it does not call Pillow. As a runtime check, an STL upload and Plotly preview completed withPIL.Image.openpatched to raise. The original environment had JPEG/JPEG2000 support, but noolefileand 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.1andwebsockets==17.4; Streamlit no longer pulls in the three obsolete packages retained by an in-place upgrade. The completepip freezeoutput 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.pip-auditover all installed distributions — No known vulnerabilities found; direct Pillow 13.0.0 OSV query also returns zero records.127.0.0.1:8765—/_stcore/healthreturnedok.PIL.Image.openblocked — passed.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.