SA-CONTRIB-2026-129: Critical severity drupal/media_library_importer vulnerability

Published Sep 2, 2026
·
Updated

A module to import media files into media library. The import folder is a plain textfield with no validation. Point it at any directory the web user can read, and the importer copies every file whose extension matches a selected media type into the public files directory and publishes it as a Media entity. Files that were deliberately kept outside the webroot, such as a private file store, become downloadable by anonymous visitors at a predictable URL.

Credit

Marcus Johansson (marcus_johansson)

Affected Software

1 affected componentFixes available
drupal/media_library_importer<2.1.6
2.1.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade drupal/media_library_importer to a version that resolves this vulnerability.

    Fixed in 2.1.6

Event History

Sep 2, 2026
Advisory Published
via Drupal·12:00 AM
Data Sourced
via Drupal·12:00 AM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which deployments are at risk of exposing non-public files?

Deployments are at risk when the importer can be pointed at a directory readable by the web user that contains files intentionally kept outside the webroot, such as a private file store.

2

What files can be exposed through an import?

The importer copies every file whose extension matches the selected media type from the chosen directory into the public files directory and publishes it as a Media entity.

3

How would exposed files be accessible to an attacker?

Imported files become downloadable by anonymous visitors at a predictable public URL.

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