Skip to content

chore(deps): bump pillow to >=12.3.0#309

Merged
kyamagu merged 1 commit into
mainfrom
fix/pillow-12.3.0
Jul 24, 2026
Merged

chore(deps): bump pillow to >=12.3.0#309
kyamagu merged 1 commit into
mainfrom
fix/pillow-12.3.0

Conversation

@kyamagu

@kyamagu kyamagu commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Bumps pillow floor from >=12.1.1 to >=12.3.0 and updates the lock (12.2.012.3.0).

This resolves 13 open Dependabot alerts (10 high, 3 medium), all affecting Pillow < 12.3.0:

Sev Issue
high Heap OOB write in ImageCmsTransform.apply() (output mode mismatch)
high JPEG2000 tiled decode growing scratch buffer → DoS
high Decompression-bomb DoS via PdfParser.PdfStream.decode()
high Heap OOB write in Image.paste()/crop() (signed coord overflow)
high Heap OOB write in RankFilter (integer overflow in ImagingExpand)
high GdImageFile._open() skips decompression-bomb check
high BdfFontFile bomb-protection bypass via font loading
high FontFile.compile() skips decompression-bomb check
high PcfFontFile._load_bitmaps() bomb-protection bypass
high OOB read via attacker-controlled row stride on mmap path (McIdas AREA)
med EPS negative %%BeginBinary byte count → infinite-loop DoS
med TGA RLE encoder leaks ~57 KB adjacent heap into output
med WindowsViewer.get_command() OS command injection via unescaped path

Test plan

  • uv run pytest — 935 passed, 29 skipped
  • uv run ruff check src/ tests/
  • uv run mypy src/ tests/

🤖 Generated with Claude Code

Resolves 13 open Dependabot alerts (10 high, 3 medium) affecting Pillow
< 12.3.0, including heap out-of-bounds writes, decompression-bomb bypasses,
and an OS command injection in WindowsViewer.get_command().

Bumps the floor from >=12.1.1 to >=12.3.0 and updates the lock
(12.2.0 -> 12.3.0).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 24, 2026 05:40

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

Updates the project’s Pillow dependency floor to a patched release to address Dependabot-reported vulnerabilities, and regenerates the uv lockfile to reflect the new minimum version (plus lockfile marker normalization).

Changes:

  • Bump runtime dependency requirement from pillow>=12.1.1 to pillow>=12.3.0.
  • Update uv.lock to lock Pillow 12.3.0 and refresh associated lock metadata/markers.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
pyproject.toml Raises the minimum required Pillow version to >=12.3.0.
uv.lock Locks Pillow 12.3.0 and includes additional lockfile rewrites (notably marker normalization across multiple packages).

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

@kyamagu
kyamagu merged commit dfbfe7e into main Jul 24, 2026
15 checks passed
@kyamagu
kyamagu deleted the fix/pillow-12.3.0 branch July 24, 2026 05:46
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