CVE-2026-142404: Composer/drupal/media_directories vulnerability

Published Dec 2, 2026
·
Updated

This module organizes media entities into a directory structure. It provides a media browser for selecting, uploading, and managing media.

The media browser API doesn't sufficiently check access to text formats. A user who can edit media can save text in a text format they aren't allowed to use, which can lead to cross-site scripting wherever that field is displayed.

This vulnerability is mitigated by the fact that an attacker must have a role with the Access Media Directories browser permission and permission to create or edit media. A media type must also have a formatted text field.

Affected Software

1 affected componentFixes available
composer/drupal/media_directories>=3.0.0<3.0.1
3.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/media_directories to a version that resolves this vulnerability.

    Fixed in 3.0.1

Event History

Dec 2, 2026
Advisory Published
via OSV·05:28 PM
Data Sourced
via OSV·05:28 PM
DescriptionAffected Software

Frequently Asked Questions

1

Which users could exploit this issue?

A user must have the Access Media Directories browser permission and permission to create or edit media. Users without those permissions are not described as able to exploit the issue.

2

What site configuration is required for the issue to be relevant?

At least one media type must include a formatted text field. The risk is realized where content from that field is displayed, because unauthorized text formats may allow cross-site scripting.

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