imageapi_optimize_webpThis module enables you to generate and serve WebP derivatives of image style images, overriding Drupal core's image style download controller to serve them.
The module serves WebP image derivative responses with the HTTP header Cache-Control: public for all file schemes other than the private file system, including the temporary file system and access-controlled custom schemes. This can lead to some users getting cached versions of files with information they should not be able to access. For example, files may be cached by Varnish or a CDN.
This vulnerability is mitigated by the fact that it only affects sites that serve image derivatives from a custom or temporary file scheme with access control, behind a shared cache that honors the Cache-Control header. Access checks are still enforced on requests that reach the site itself. An attacker would also need to know the path of a previously requested file still in cache.
This is the same vulnerability class fixed in Drupal core by SA-CORE-2025-008 and SA-CORE-2026-010; the module's controller override reintroduced the behavior.
Install the latest version:
- If you use the ImageAPI Optimize WebP module 2.1.x, upgrade to ImageAPI Optimize WebP 2.1.2
- ImageAPI Optimize WebP 2.0.x only supports Drupal 10.1 and 10.2, which are end-of-life. It will not receive a security update and is no longer supported.
- Pierre Rudloff (prudloff) of the Drupal Security Team
- Swan Kalata (akalata) of the Drupal Security Team
- Greg Knaddison (greggles) of the Drupal Security Team