Repository navigation
fix(deps): bump dify-agent Pillow to 13.0.0 for CVE fixes - #44871
Conversation
Pillow 12.3.0 is affected by multiple critical and high severity CVEs (CVE-2026-96639, CVE-2026-112393, CVE-2026-112398, CVE-2026-112403, CVE-2026-112900, and others). The reported fixed version is 13.0.0. The previous constraint `pillow>=11.3.0,<13` capped resolution below 13.0.0, so the lockfile could not pick up the fix. Raise the floor to `pillow>=13.0.0,<14` and update dify-agent/uv.lock to Pillow 13.0.0. The lockfile revision is preserved (no re-format). Only the Pillow package entry and the server-extra specifier are changed. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Testing failed. |
be16f02 to
1fce605
Compare
Note on pydantic-ai-slim CVE-2026-107286pydantic-ai-slim 2.31.0 is in the affected range ( Reason: dify-agent does not use The CVE requires both conditions to be exploitable:
dify-agent meets neither. The official mitigation confirms: "Agent-level Upgrading to 2.53.0 (the only patched version) introduces multiple breaking changes:
These require source and test changes that are out of scope for a dependency bump. The scan alert can be handled as a false positive / waiver since the vulnerable code path is not used. |
Summary
dify-agentPillow constraint frompillow>=11.3.0,<13topillow>=13.0.0,<14and updatedify-agent/uv.lock.<13cap prevented the lockfile from resolving to the fixed version.GifImagePlugin._save_netpbm, removedExifTags.IFD.Makernote, dropped Python 3.10). Verified thatdify-agent/srcdoes not use any of these APIs. dify-agent requires Python >=3.13, well above Pillow 13.0.0's >=3.11 floor.Lockfile note
The local uv 0.8.9 downgrades the lockfile format from revision 5 to revision 3 and introduces unrelated httpcore2/httpx2 marker changes. To keep the diff minimal, the Pillow package entry and server-extra specifier were edited manually; the lockfile revision is preserved at 5.
Test plan
make check(dify-agent lint)make test(dify-agent tests)uv sync --frozen --no-dev --extra serverinstalls successfully with Pillow 13.0.0python -c "import PIL; print(PIL.__version__)"