SA-CORE-2026-009: XSS

Published Jun 17, 2026
·
Updated

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.

Credit

cantina_security

Affected Software

1 affected componentFixes available
Drupal Drupal<11.3.12, <11.2.14, <10.6.11, <10.5.12
11.3.1211.2.1410.6.1110.5.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 11.3.12Fixed in 11.2.14Fixed in 10.6.11Fixed in 10.5.12
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 11.3.12
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 11.2.14
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.6.11
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.5.12
  6. Configuration

    Enable or add server-side MIME type validation for image field uploads in the JSON:API and REST modules so uploaded files are checked for an appropriate image MIME type in addition to their file extension before acceptance.

    JSON:API and REST modules uploaded_image_mime_validation = validate MIME type in addition to file extension
  7. Configuration

    Configure the web server to avoid serving uploaded files with their actual (potentially unsafe) MIME type — for example, force uploaded images to be served with an image Content-Type and/or disable execution of scripts from upload directories to prevent XSS or other unexpected behavior.

    web server uploaded_file_serving = force image Content-Type or disable script execution in upload directories

Event History

Jun 17, 2026
Advisory Published
via Drupal·12:00 AM
Data Sourced
via Drupal·12:00 AM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of SA-CORE-2026-009?

The severity of SA-CORE-2026-009 is critical with a score of 9.

2

How do I fix SA-CORE-2026-009?

To fix SA-CORE-2026-009, update your Drupal installation to the latest version as recommended in the security advisory.

3

What vulnerabilities does SA-CORE-2026-009 introduce?

SA-CORE-2026-009 introduces vulnerabilities related to improper validation of the MIME type for uploaded files, potentially allowing XSS attacks.

4

Who is affected by SA-CORE-2026-009?

SA-CORE-2026-009 affects all Drupal installations using the JSON:API and REST modules that allow image file uploads.

5

What are the potential consequences of SA-CORE-2026-009?

The potential consequences of SA-CORE-2026-009 include the possibility of a malicious user uploading non-image files, which could lead to security breaches and exploitation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203