Skip to content

Bump Pillow 12.2.0 -> 12.3.0 to close 13 dependabot alerts - #71

Merged
Federico Alves (urucoder) merged 1 commit into
mainfrom
bump-pillow-12.3
Jul 27, 2026
Merged

Bump Pillow 12.2.0 -> 12.3.0 to close 13 dependabot alerts#71
Federico Alves (urucoder) merged 1 commit into
mainfrom
bump-pillow-12.3

Conversation

@Clamps251

Copy link
Copy Markdown
Collaborator

Summary

Closes 13 open Pillow Dependabot alerts (10 high, 3 medium) — all fixed in Pillow 12.3.0.

The full CVE list is in the commit message. None of the vulnerable code paths (EPS, TGA, PDF, JPEG2000, font files, McIdas AREA, RankFilter, ImageCmsTransform, WindowsViewer) are on the SPARROW runtime path — we only use Image.open on inbound JPEGs, letterbox, ImageDraw.rectangle/text, and JPEG save + EXIF via piexif — but a minor version bump is easier than filing a per-alert suppression.

Test plan

Verified end-to-end on the test Pi (192.168.1.233, Raspberry Pi 5, Python 3.12.13):

  • Sparrow container rebuild in ~100s (only Pillow changed on the wheel install)
  • Container starts clean, no ImportError / traceback in any log
  • Pillow 12.3.0 imports; torch 2.10.0 / torchvision 0.25.0 / onnxruntime 1.20.1 / pandas 2.2.3 / numba 0.60.0 all still load
  • Injected test JPEG round-trips through inference: PIL open → letterbox → ONNX MegaDetector → torchvision NMS → PIL save with EXIF via piexif → gallery
  • detections.csv row written correctly

Verified end-to-end on the test Pi: sparrow container rebuild,
Python 3.12.13 + Pillow 12.3.0 + torch 2.10.0 all load cleanly, injected
test JPEG round-trips through inference (letterbox -> ONNX MegaDetector
-> torchvision NMS -> Pillow save with EXIF), lands in gallery with
matching detections.csv row.
Copilot AI review requested due to automatic review settings July 27, 2026 14:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Python dependency pin for Pillow in SPARROW to address a set of Dependabot security alerts by moving to a patched release.

Changes:

  • Bump Pillow from 12.2.0 to 12.3.0 in sparrow/requirements.txt.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@urucoder
Federico Alves (urucoder) merged commit 8c2f946 into main Jul 27, 2026
5 checks passed
@Clamps251
Carl Chalmers (Clamps251) deleted the bump-pillow-12.3 branch July 27, 2026 16:04
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.

3 participants