drupal/imageapi_optimize_webp - SA-CONTRIB-2026-247
This 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/imageapi_optimize_webp | < 2.1.2 | 2.1.2 |
| Drupal module | drupal/imageapi_optimize_webp | < 2.1.2 | 2.1.2 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/imageapi_optimize_webp- Disclosed
- 21.10.2026
- Updated
- 22.10.2026 18:07
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2026-247 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/imageapi_optimize_webp
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.