CVE-2026-142405: 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 validate the values it saves on media items. A user who can create or edit media can make their media reference files and other content they don't have access to. This lets them access files they shouldn't be able to view, including private files that belong to other content on the site.

This vulnerability is mitigated by the fact that an attacker must have a role with the Access Media Directories browser permission, as well as permission to create or edit media.

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:29 PM
Data Sourced
via OSV·05:29 PM
DescriptionAffected Software

Frequently Asked Questions

1

Which users can exploit this issue?

An attacker needs the Access Media Directories browser permission and permission to create or edit media. Users without both of these capabilities are not described as able to exploit the issue.

2

What information could be exposed?

A permitted media creator or editor can cause media to reference files or other content they would not normally be allowed to access. This can expose private files belonging to other site content.

3

How can administrators determine whether their site has exposed users?

Review which roles have the Access Media Directories browser permission, then identify users in those roles who can also create or edit media. Those users meet the stated permission prerequisites for 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