Allow Pillow 13 in inference-sdk

Open Beginner friendly
#3,335 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

  • #3342 by @voropaevv — closed without merging

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
80/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start with requirements/requirements.sdk.http.txt and review the Pillow constraint for inference-sdk. Check the SDK’s image encoding path for compatibility with Pillow 13, then run the relevant dependency resolution and SDK tests. Done means Pillow 13 can be installed with inference-sdk and the supported constraint is updated.

Written by the indexing model from the issue text.

Description

bug
Search before asking
  • I have searched the Inference issues and found no similar bug report.
Bug

Hi,

inference-sdk pins pillow>=12.3.0,<13.0.0 (requirements/requirements.sdk.http.txt, still the case in 1.8.4 and on main). Pillow 13.0.0 fixes several security issues in 12.x, including CVE-2026-96639 and CVE-2026-112398 / CVE-2026-112403 (critical), plus CVE-2026-112393 and CVE-2026-112900.

With the cap in place, projects that depend on inference-sdk can't upgrade Pillow without overriding your constraint. Could you relax the upper bound to <14 (or bump the minimum to >=13.0.0)? The 13.0 breaking changes (removal of Image._show, get_child_images moved to ImageFile, I-mode PNG saving) don't seem to affect the SDK's encoding path, but you'd know better.

Thanks!

Environment

inference-sdk 1.8.4, Python 3.12

Minimal Reproducible Example

No solution found for uv pip compile with inference-sdk and pillow>=13.0.0

Additional

No response

Are you willing to submit a PR?
  • Yes I'd like to help by submitting a PR!
Dominant language
Python
Stars
2.5k
Forks
340
Avg merge
2d 11h
Merged PRs (30d)
92

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from roboflow/inference

All issues in roboflow/inference

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.