# DRUPAL-CONTRIB-2026-349: This module organizes media entities into a directory structure

- Database: Drupal
- Published: 2026-12-02
- Modified: 2026-12-02

## Affected versions

- drupal/media\_directories (Packagist): fixed in 3.0.1

## 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.

## References

- https://www.drupal.org/sa-contrib-2026-349

Page: https://cve.now/DRUPAL-CONTRIB-2026-349

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
