Skip to content

[Snyk] Security upgrade pillow from 9.5.0 to 12.3.0#407

Open
caniszczyk wants to merge 1 commit into
mainfrom
snyk-fix-bd43498ba4cbc0b4e471fe59aeed3ce6
Open

[Snyk] Security upgrade pillow from 9.5.0 to 12.3.0#407
caniszczyk wants to merge 1 commit into
mainfrom
snyk-fix-bd43498ba4cbc0b4e471fe59aeed3ce6

Conversation

@caniszczyk

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 4 vulnerabilities in the pip dependencies of this project.

Snyk changed the following file(s):

  • builders/testdata/python/appengine_sdk/requirements.txt
⚠️ Warning
appengine-python-standard 2.0.1 requires Pillow, which is not installed.

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@caniszczyk

Copy link
Copy Markdown
Author

Merge Risk: High

This major version upgrade from Pillow 9.5.0 to 12.3.0 includes several significant breaking changes that require code modifications and environment updates.

Key Breaking Changes:

  • Python Version Support: Support for Python 3.7, 3.8, and 3.9 has been dropped across versions 10.0.0, 11.0.0, and 12.0.0. Your environment must be using at least Python 3.10. [2, 3, 9]
  • Removed Image Constants: In version 10.0.0, many deprecated constants were removed and replaced by enums. This is a frequent cause of breakage. For example:
    • PIL.Image.ANTIALIAS is removed. Use PIL.Image.Resampling.LANCZOS instead. [15]
    • PIL.Image.CUBIC is removed. Use PIL.Image.Resampling.BICUBIC instead. [14]
  • API and Module Removals:
    • v10.0.0: im.category attribute, support for Tk/Tcl 8.4, and several JpegImagePlugin and ImagePalette parameters have been removed. [6, 11]
    • v11.0.0: PyAccess, Image.USE_CFFI_ACCESS, and the internal PSFile class were removed. [3]
    • v12.0.0: Several internal functions like ImageFile.raise_oserror and IptcImageFile helpers were removed. [2]

Recommendation:

This upgrade requires significant developer action. Before merging, you must:

  1. Ensure your project is running on Python 3.10 or newer.
  2. Review your code for usage of removed constants like ANTIALIAS and CUBIC and update them to use the new Image.Resampling enum values.
  3. Thoroughly test all image processing functionality, as other less common API removals may affect your application.

Source: Pillow Changelog [1, 5]

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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