Skip to content
OpenAdvisories
Unscored CVE-2026-142403 DRUPAL-CONTRIB-2026-349

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

Published Dec 2, 2026 · Updated Dec 2, 2026 · Assigned by DRUPAL

Description

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 packages

EcosystemPackageAffectedFixedRecord
Packagist drupal/media_directories < 3.0.1 3.0.1 DRUPAL-CONTRIB-2026-349

References