Skip to content

fix(deps): update dependency pillow to v12 [security]#3787

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/pypi-pillow-vulnerability
Open

fix(deps): update dependency pillow to v12 [security]#3787
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/pypi-pillow-vulnerability

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 11, 2026

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
Pillow (changelog) ==10.4.0==12.1.1 age confidence

GitHub Vulnerability Alerts

CVE-2026-25990

Impact

An out-of-bounds write may be triggered when loading a specially crafted PSD image. Pillow >= 10.3.0 users are affected.

Patches

Pillow 12.1.1 will be released shortly with a fix for this.

Workarounds

Image.open() has a formats parameter that can be used to prevent PSD images from being opened.

References

Pillow 12.1.1 will add release notes at https://pillow.readthedocs.io/en/stable/releasenotes/index.html


Release Notes

python-pillow/Pillow (Pillow)

v12.1.1

Compare Source

v12.1.0

Compare Source

https://pillow.readthedocs.io/en/stable/releasenotes/12.1.0.html

Deprecations
Documentation
Dependencies
Testing
Type hints
Other changes

v12.0.0

Compare Source

https://pillow.readthedocs.io/en/stable/releasenotes/12.0.0.html

Removals

Deprecations

Documentation

Dependencies

Testing

Type hints

Other changes

v11.3.0

Compare Source

https://pillow.readthedocs.io/en/stable/releasenotes/11.3.0.html

Deprecations

Documentation

Dependencies

Testing

Type hints

Other changes


Configuration

📅 Schedule: Branch creation - "" in timezone US/Eastern, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented Feb 11, 2026

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: uv.lock
Command failed: uv lock --upgrade-package pillow
Using CPython 3.13.12
  × No solution found when resolving dependencies:
  ╰─▶ Because wagtail==5.2.8 depends on pillow>=9.1.0,<11.0.0 and your
      project depends on pillow==12.1.1, we can conclude that your project and
      wagtail==5.2.8 are incompatible.
      And because your project depends on wagtail==5.2.8, we can conclude that
      your project's requirements are unsatisfiable.

@renovate renovate bot force-pushed the renovate/pypi-pillow-vulnerability branch 11 times, most recently from 1e30bc5 to 1981069 Compare February 19, 2026 12:09
@renovate renovate bot force-pushed the renovate/pypi-pillow-vulnerability branch 7 times, most recently from d2af2cf to e07a581 Compare February 23, 2026 14:09
@renovate renovate bot force-pushed the renovate/pypi-pillow-vulnerability branch 10 times, most recently from c47c3a9 to 7c0ad00 Compare February 26, 2026 15:55
@renovate renovate bot force-pushed the renovate/pypi-pillow-vulnerability branch 9 times, most recently from b64cb58 to 0a44dc8 Compare March 3, 2026 17:11
]
dependencies = [
"Pillow==10.4.0",
"Pillow==12.1.1",
Copy link

Choose a reason for hiding this comment

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

Bug: The update to Pillow==12.1.1 is incompatible with the pinned pillow-heif==0.22.0 dependency, which will cause runtime errors during HEIF/HEIC image processing.
Severity: CRITICAL

Suggested Fix

Update the pillow-heif dependency to a version compatible with Pillow 12.x. Based on its release history, a version like 1.2.1 or newer is likely required. This will ensure that HEIF/HEIC image processing continues to function correctly after the Pillow upgrade.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: pyproject.toml#L15

Potential issue: The PR updates `Pillow` to version 12.1.1 but leaves the `pillow-heif`
dependency at version 0.22.0. This older version of `pillow-heif` is not compatible with
`Pillow` 12.x. Because the project uses `willow[heif]`, any attempt to process HEIF or
HEIC images, such as uploading them or generating thumbnails via Wagtail, will result in
a runtime failure. The application will not crash on startup, but this core image
processing functionality will be broken for these specific image formats.

@renovate renovate bot force-pushed the renovate/pypi-pillow-vulnerability branch from 0a44dc8 to e9c16a6 Compare March 3, 2026 18:37
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.

0 participants