ADVISORIES

Drupal Security Advisory

DRUPAL-CORE-2026-009

Details

The JSON:API and REST modules allow you to upload image files to image fields.

The validation rules check the file extension of the uploaded file but not the file MIME type. This may allow a malicious user to upload a file that is not an image.

Certain web-server configurations may serve the uploaded file with its actual MIME type rather than an image type. This may lead to cross-site scripting (XSS) or other unexpected behavior.

Affected packages

EcosystemPackageAffected versions
Packagistdrupal/core
All versions before 10.5.12 (fixed in 10.5.12)
From 10.6.0 before 10.6.11 (fixed in 10.6.11)
From 11.2.0 before 11.2.14 (fixed in 11.2.14)
From 11.3.0 before 11.3.12 (fixed in 11.3.12)
From 11.0.0 before 11.1.0 (fixed in 11.1.0)
From 11.1.0 before 11.2.0 (fixed in 11.2.0)

References