# Square Thumbnails <= 2.4.0 - Authenticated (Author+) Missing Authorization to Arbitrary Attachment Thumbnail Regeneration

- **ID:** WPSEC-2026-3759
- **Plugin:** Square Thumbnails – Square Product Images Without Cropping (`square-thumbnails`), https://wordpress.org/plugins/square-thumbnails/
- **Affected versions:** from 2.3.0 before 2.5
- **Fixed in:** 2.5 (Update to 2.5 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-862
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-11-24)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/square-thumbnails
- **Fix released:** 2026-11-23
- **Published:** 2026-11-24
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3759/

## Description

The Square Thumbnails plugin for WordPress is vulnerable to unauthorized modification of data via the 'sqt_regenerate_single' AJAX action and the 'Regenerate Square Thumbnails' Media Library bulk action in all versions up to, and including, 2.4.0, due to the handlers only checking the upload_files capability and not checking whether the user can edit the specific attachment. This makes it possible for authenticated attackers, with Author-level access and above, to regenerate the square thumbnails and rewrite the metadata of image attachments belonging to other users.

## References

- https://wpsec.com/vuln/WPSEC-2026-3759/
- https://plugins.svn.wordpress.org/square-thumbnails/tags/2.5/
- https://wordpress.org/plugins/square-thumbnails/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3759/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
