Skip to content

fix(deps): require Pillow 13 and withdraw the marker extra - #85

Merged
stephen-masters merged 1 commit into
mainfrom
fix/pillow-13
Oct 31, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
fix/pillow-13

Conversation

@stephen-masters

@stephen-masters stephen-masters commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Pillow 13.0.0 fixes all 41 advisories published 20–31 October 2026 (GitHub advisory database): 5 critical, 23 high and 13 moderate. They include heap overflows in the TIFF, JPEG and JPEG 2000 paths, which a crafted scan reaches through Image.open(). Core now requires Pillow>=13.0.

The marker extra is withdrawn

Every marker-pdf release, 2.x included, requires Pillow<11, and so does surya-ocr under it. So tetrak[marker] can't be installed alongside a patched core. If the extra stayed, pip might backtrack to an older tetrak to satisfy it. So:

  • The marker extra is removed, and marker leaves the ocr and all umbrellas.
  • The backend stays registered. Asked for without marker-pdf installed, it raises BackendWithdrawnError, which subclasses MissingBackendError, so fallbacks still work. The message says why the backend is unavailable and suggests tetrak 5.20 or earlier for Marker; it no longer names an extra that doesn't exist.
  • A comment in pyproject.toml explains how to bring Marker back once marker-pdf allows Pillow 13. A test fails if the extra is restored while the backend is still listed as withdrawn.
  • The README, installation page, backend guide and the tetrak.dev engines page all note the withdrawal. The Marker measurements stand, since they were made with 1.x.

Checks

  • Fast suite on Pillow 13.0.0: 508 passed, 13 xfailed. There are no Pillow deprecation warnings in the orientation, registry or install-target tests.
  • Ruff, the Sphinx -W build, markdownlint and the site build are clean.
  • uv pip compile resolves .[all] and .[armenian] to pillow==13.0.0 on both Linux x86_64 and macOS arm64. The SBOM matrix loses its marker target automatically.

This is fix:, so it cuts 5.20.1 and PyPI installs get the new floor.

🤖 Generated with Claude Code

Pillow 13.0.0 fixes the advisories published 21-23 October 2026,
among them heap overflows in the TIFF, JPEG and JPEG 2000 paths that a
crafted scan reaches through Image.open(). Core now requires it.

Every marker-pdf release, and surya-ocr under it, requires Pillow
below 11, so `tetrak[marker]` could no longer resolve. Left in place,
pip might also backtrack to an older tetrak to satisfy it. The extra
is withdrawn and leaves the `ocr` and `all` umbrellas.

The backend stays registered. Asked for without marker-pdf installed,
it raises BackendWithdrawnError, a MissingBackendError that says why
instead of naming an extra that no longer exists. pyproject.toml
records how to bring Marker back once marker-pdf allows Pillow 13, and
a test fails if the extra returns while the backend is still listed as
withdrawn.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1efd68e
Status: ✅  Deploy successful!
Preview URL: https://ae10a855.tetrak.pages.dev
Branch Preview URL: https://fix-pillow-13.tetrak.pages.dev

View logs

@stephen-masters
stephen-masters merged commit 7906101 into main Oct 31, 2026
8 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