https://github.com/wikimedia/pywikibot/security/dependabot/10
Impact
An out-of-bounds write may be triggered when loading a specially crafted PSD image. Pillow >= 10.3.0 users are affected. Pillow 12.1.1 is a fix for this.
Workaround
Image.open() has a formats parameter that can be used to prevent PSD images from being opened.