# DRUPAL-CONTRIB-2026-350: 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): from 3.0.0, 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 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.

## References

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

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

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