CVE-2026-142403: XSS

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 Directories UI submodule doesn't sufficiently escape directory names in its directory tree. A user who can create or rename directories can inject markup. This can lead to a cross-site scripting (XSS) attack that runs for other users who open the directory tree, including administrators.

This vulnerability is mitigated by the fact that an attacker must have a role with permission to create or edit terms in the directory vocabulary.

On the 3.0.x branch, only the deprecated Media Directories UI submodule is affected.

Affected Software

1 affected componentFixes available
composer/drupal/media_directories<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:26 PM
Data Sourced
via OSV·05:26 PM
DescriptionAffected Software

Frequently Asked Questions

1

What level of access does an attacker need?

The attacker must have a role permitted to create or edit terms in the directory vocabulary, allowing them to create or rename a directory with injected markup.

2

Which users are at risk from a successful exploit?

Any user who opens the directory tree can be affected, including administrators. The injected markup executes in the context of users viewing that tree.

3

Are all 3.0.x installations affected?

On the 3.0.x branch, the issue affects only the deprecated Media Directories UI submodule. The provided information does not identify other affected branches or configurations.

4

What can be done while patching is unavailable?

Restrict the permission to create or edit terms in the directory vocabulary to trusted users, since that permission is required to introduce the malicious directory name.

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