Media folders: This module provides a better UI for managing and selecting Media entities in a folder structure. (CVE-2026-16638)
The Media folders module for Drupal provides an improved UI for managing media entities in a folder structure. It suffers from a stored cross-site scripting (XSS) vulnerability due to insufficient sanitization of media item and folder names and descriptions when displayed in the media browser. Exploitation requires the attacker to have permissions to create or edit media items or folders. Versions prior to 1.0.8 are affected.
AI Analysis
Technical Summary
CVE-2026-16638 is a stored XSS vulnerability in the Drupal media_folders module that arises from inadequate sanitization of names and descriptions of media items and folders in the media browser UI. This allows an attacker with appropriate media creation or editing permissions to inject malicious scripts that persist in the system and execute when viewed by users with access to the media browser. The vulnerability affects all versions before 1.0.8.
Potential Impact
An attacker with permissions to create or edit media items or folders can inject malicious scripts that execute in the context of users viewing the media browser, potentially leading to session hijacking, privilege escalation, or other XSS-related impacts. However, the attack surface is limited by the need for elevated permissions to create or edit media content.
Mitigation Recommendations
Upgrade to version 1.0.8 or later of the media_folders module where this vulnerability is fixed. Since the vulnerability requires specific permissions to exploit, ensure that only trusted users have media creation or editing rights. Patch status is not explicitly confirmed in the input data, but the affectedVersions field indicates that versions prior to 1.0.8 are vulnerable, implying that 1.0.8 contains the fix.
Media folders: This module provides a better UI for managing and selecting Media entities in a folder structure. (CVE-2026-16638)
Description
The Media folders module for Drupal provides an improved UI for managing media entities in a folder structure. It suffers from a stored cross-site scripting (XSS) vulnerability due to insufficient sanitization of media item and folder names and descriptions when displayed in the media browser. Exploitation requires the attacker to have permissions to create or edit media items or folders. Versions prior to 1.0.8 are affected.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-16638 is a stored XSS vulnerability in the Drupal media_folders module that arises from inadequate sanitization of names and descriptions of media items and folders in the media browser UI. This allows an attacker with appropriate media creation or editing permissions to inject malicious scripts that persist in the system and execute when viewed by users with access to the media browser. The vulnerability affects all versions before 1.0.8.
Potential Impact
An attacker with permissions to create or edit media items or folders can inject malicious scripts that execute in the context of users viewing the media browser, potentially leading to session hijacking, privilege escalation, or other XSS-related impacts. However, the attack surface is limited by the need for elevated permissions to create or edit media content.
Mitigation Recommendations
Upgrade to version 1.0.8 or later of the media_folders module where this vulnerability is fixed. Since the vulnerability requires specific permissions to exploit, ensure that only trusted users have media creation or editing rights. Patch status is not explicitly confirmed in the input data, but the affectedVersions field indicates that versions prior to 1.0.8 are vulnerable, implying that 1.0.8 contains the fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- DRUPAL-CONTRIB-2026-080
- Osv Schema Version
- 1.7.0
- Aliases
- ["CVE-2026-16638"]
- Ecosystems
- ["Packagist:https://packages.drupal.org/8"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a6151349c2644c7f8da7617
Added to database: 07/22/2026, 23:24:36 UTC
Last enriched: 07/23/2026, 00:11:41 UTC
Last updated: 07/23/2026, 00:20:52 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.