{"id":"DRUPAL-CONTRIB-2026-350","details":"This module organizes media entities into a directory structure. It provides a media browser for selecting, uploading, and managing media.\n\nThe 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.\n\nThis 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.","aliases":["CVE-2026-142404"],"modified":"2026-12-02T19:15:06.882144599Z","published":"2026-12-02T17:28:19Z","references":[{"type":"WEB","url":"https://www.drupal.org/sa-contrib-2026-350"}],"affected":[{"package":{"name":"drupal/media_directories","ecosystem":"Packagist:https://packages.drupal.org/8","purl":"pkg:composer/drupal/media_directories?repository_url=https:%2F%2Fpackages.drupal.org%2F8"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.1"}],"database_specific":{"constraint":"\u003e=3.0.0 \u003c3.0.1"}}],"database_specific":{"affected_versions":"\u003e=3.0.0 \u003c3.0.1","source":"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/media_directories/DRUPAL-CONTRIB-2026-350.json"}}],"schema_version":"1.9.2","credits":[{"name":"Märt Rang (rang501)","contact":["https://www.drupal.org/u/rang501"]}]}