Skip to content

[Snyk] Security upgrade pillow from 9.5.0 to 13.0.0 - #5

Merged
amitdevx merged 3 commits into
mainfrom
snyk-fix-971c42960b69a9851639d3de3b75e97a
Oct 31, 2026
Merged

amitdevx merged 3 commits into
mainfrom
snyk-fix-971c42960b69a9851639d3de3b75e97a

Conversation

@amitdevx

Copy link
Copy Markdown
Owner

snyk-top-banner

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

Snyk changed the following file(s):

  • requirements.txt
⚠️ Warning
eportlab 4.0.9 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.

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:

🦉 Uncontrolled Recursion
🦉 Regular Expression Denial of Service (ReDoS)
🦉 Allocation of Resources Without Limits or Throttling
🦉 More lessons are available in Snyk Learn

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277713
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277726
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277727
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277734
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277776
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277777
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277778
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277779
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277780
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277782
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277783
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277784
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277785
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277786
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277793
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277795
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277796
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277797
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277799
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277801
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277802
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21279300
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21369600
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430900
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430916
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430917
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430990
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430991
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430998
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430999
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21431000
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21431005
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21431018
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21431022
@amitdevx

Copy link
Copy Markdown
Owner Author

Merge Risk: High

This upgrade from Pillow 9.5.0 to 13.0.0 is a major version jump that includes multiple breaking changes. Key changes include the removal of deprecated APIs, changes to default behaviors, and dropped support for older Python versions.

Key Breaking Changes:

  • Python Version Support:

    • Support for Python 3.8 was dropped in Pillow 11.0.0.
    • Support for Python 3.9 was dropped in Pillow 12.0.0.
  • API Removals and Changes (v10.0.0):

    • ImageFont.getsize(), ImageFont.getmask(), and Image.ANTIALIAS have been removed. Use ImageFont.getbbox(), ImageFont.getmask2(), and Image.Resampling.LANCZOS (or Image.Resampling.ANTI_ALIAS) respectively.
    • im.category and related attributes (Image.NORMAL, Image.SEQUENCE, Image.CONTAINER) have been removed.
    • Support for Tk/Tcl 8.4 was removed.
  • API Removals (v11.0.0 - v13.0.0):

    • PSFile and PyAccess classes were removed.
    • ImageFile.raise_oserror() was removed in v12.0.0.
    • Image._show was removed in v13.0.0; use show() instead.
    • Saving integer ("I" mode) images as PNGs now requires an explicit conversion to a lower bit depth (e.g., im.convert("I;16")) as the implicit, data-clipping behavior was removed in v13.0.0.

Recommendation:

Given the number of removed APIs and changes in behavior, this upgrade requires careful code review and testing. Developers must:

  1. Ensure their environment runs a supported Python version (3.10+).
  2. Search the codebase for removed APIs like ImageFont.getsize, Image.ANTIALIAS, and im.category and replace them with the modern equivalents.
  3. Review any code that saves integer-mode PNG images to ensure proper conversion is handled.

Source: Pillow Release Notes

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

Copilot AI balanced review requested due to automatic review settings October 31, 2026 11:23

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.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@amitdevx

amitdevx commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner Author

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

snyk-bot and others added 2 commits October 31, 2026 11:25
The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277713
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277726
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277727
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277734
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277776
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277777
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277778
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277779
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277780
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277782
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277783
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277784
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277785
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277786
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277793
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277795
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277796
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277797
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277799
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277801
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21277802
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21279300
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21369600
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430900
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430916
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430917
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430990
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430991
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430998
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21430999
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21431000
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21431005
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21431018
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-21431022
@amitdevx
amitdevx merged commit c3da0e6 into main Oct 31, 2026
10 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.

4 participants