Repository navigation
fix(deps): lock Pillow 13.0.0 on Python 3.11+ to remediate CVEs - #1260
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. 💡 Show Tips and TricksTesting This CDK VersionYou can test this version of the CDK using the following: # Run the CLI from this branch:
uvx 'git+https://github.com/airbytehq/airbyte-python-cdk.git@devin/1793725734-pillow-13#egg=airbyte-python-cdk[dev]' --help
# Update a connector to use the CDK from this branch ref:
cd airbyte-integrations/connectors/source-example
poe use-cdk-branch devin/1793725734-pillow-13PR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
PyTest Results (Full)6 309 tests 6 287 ✅ 9m 20s ⏱️ Results for commit 2b565d0. ♻️ This comment has been updated with latest results. |
Baz (bazarnov)
approved these changes
Nov 3, 2026
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pillow 13.0.0 fixes CVE-2026-112900 (EPS filename passed to Ghostscript), CVE-2026-112403 (overflow in lossless JPEG thumbnails), CVE-2026-112393 (overflow when saving TIFF to a
BytesIObuffer) and two JPEG/FPX overflows. Pillow isn't a direct dependency of the CDK; it comes in throughunstructured,pdf2image,pytesseractandpython-pptx. The lock stayed on12.3.0because none of those packages set a minimum Pillow version, Pillow 13 drops Python 3.10, and the CDK supports>=3.10.This PR declares
pillowas an optional dependency with a different constraint per Python version, and adds it to thefile-basedandvector-db-basedextras:>=13.0.0. Python 3.10 has no patched Pillow release and stays on 12.x.pillowis added to the deptryDEP002ignore list because the CDK never imports it.main. No other package versions changed; the remaining lock diff is Poetry reordering marker expressions.How exposed the connectors were
In practice the exposure is low. Connector images (
python-connector-base) don't shipgs(Ghostscript) orolefile. The CDK'sunstructuredparser only handles PDF, DOCX, PPTX and MD, and never callsthumbnail(),draft(), or saves TIFF to memory. This PR is mainly about scanner hygiene and defense in depth.Test plan
poetry check --lockpassed.poetry install --all-extrason Python 3.12 givesPIL.__version__ == "13.0.0".poetry run deptry .,ruff checkandruff format --checkpassed.pytest unit_tests/sources/file_based: 295 passed, 1 failed. The failure (test_parse_start_date[date_only_ab_datetime_parse_fallback], an aware vs. naive datetime comparison) also happens onmainand is unrelated to this change.Follow-ups
After release, re-lock the file-based sources (s3, gcs, google-drive, sftp-bulk, sharepoint, onedrive) and the vector DB destinations. sharepoint and onedrive are still on CDK 6.x.
Requested by Oleksandr Bazarnov (Baz (@bazarnov)) and Patrick Nilan (Patrick Nilan (@pnilan)) in Slack.
Link to Devin session: https://app.devin.ai/sessions/983c13c1277044d599fbf2aa459e2982
Open in Devin Desktop: https://app.devin.ai/desktop/session/983c13c1277044d599fbf2aa459e2982?variant=devin