Skip to content
OpenAdvisories
Unscored CVE-2026-142404 DRUPAL-CONTRIB-2026-350

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

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist drupal/media_directories >= 3.0.0, < 3.0.1 3.0.1 DRUPAL-CONTRIB-2026-350

References