{"id":"DRUPAL-CONTRIB-2026-349","details":"This module organizes media entities into a directory structure. It provides a media browser for selecting, uploading, and managing media.\n\nThe 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.\n\nThis vulnerability is mitigated by the fact that an attacker must have a role with permission to create or edit terms in the directory vocabulary.\n\nOn the 3.0.x branch, only the deprecated Media Directories UI submodule is affected.","aliases":["CVE-2026-142403"],"modified":"2026-12-02T19:15:05.583223330Z","published":"2026-12-02T17:26:45Z","references":[{"type":"WEB","url":"https://www.drupal.org/sa-contrib-2026-349"}],"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":"0"},{"fixed":"3.0.1"}],"database_specific":{"constraint":"\u003c3.0.1"}}],"database_specific":{"affected_versions":"\u003c3.0.1","source":"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/media_directories/DRUPAL-CONTRIB-2026-349.json"}}],"schema_version":"1.9.2","credits":[{"name":"Märt Rang (rang501)","contact":["https://www.drupal.org/u/rang501"]}]}