Skip to main content

Drupal Media Folders CVE-2026-16638

| EUVDEUVD-2026-66182 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-25 drupal GHSA-9qmj-5rmh-j6x2
6.1
CVSS 3.1 · Vendor: drupal
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Drupal site with Media Folders module enabled
  2. Delivery
    Submit XSS payload in folder name or metadata field
  3. Exploit
    Payload persisted in Drupal database
  4. Execution
    Victim admin/editor navigates to media folder page
  5. Persist
    Malicious script executes in victim browser
  6. Impact
    Session token exfiltrated to attacker infrastructure

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target Drupal installation has the Media Folders contributed module installed and enabled in a version from 0.0.0 up to (but not including) 1.0.8 - this is a non-core, opted-in module and not present by default. The attacker must have permission to create or modify media folder entries; the CVSS PR:N rating suggests the injection point may be reachable without authentication, but this is not confirmed by the description - the exact permission level required is unspecified in available data. A victim user must subsequently navigate to the affected media folder page (UI:R), meaning passive or automated exploitation without victim interaction is not possible. Limiting exploitation: the module must be actively installed and non-default; user interaction is mandatory; and impact is bounded to low confidentiality and integrity with no availability impact (C:L/I:L/A:N).

Impact

The CVSS 6.1 score with AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N accurately captures the network-accessible, low-complexity nature of the flaw while bounding impact to low confidentiality and integrity. The EPSS probability of 0.15% at the 4th percentile is very low, consistent with the SSVC assessment of 'exploitation: none' and 'automatable: no' - indicating no observed mass exploitation and no straightforward automated attack path. The CVE is absent from CISA KEV and no POC has been identified, placing this firmly in the category of unconfirmed-exploitation risk. The stored nature of the XSS is the primary risk amplifier: a single successful injection can silently affect every authenticated user who browses media folders, including site administrators whose session tokens could enable full site takeover - a meaningful tail risk even at low EPSS. SSVC's 'technical impact: partial' and the low C:L/I:L CVSS impact metrics are consistent. Overall this is a genuine vulnerability warranting patching in a standard change cycle, but the convergent signals from EPSS, KEV absence, SSVC, and non-automatable classification do not support emergency response prioritization.

Exploit ScenarioDerived

An attacker with permission to create or rename media folders submits a folder name containing a JavaScript payload such as a script tag or event-handler attribute that Drupal Media Folders fails to sanitize before storage. When an authenticated site administrator subsequently visits the Media Folders management page, the stored payload executes in the admin's browser, silently exfiltrating their session cookie to an attacker-controlled endpoint and granting the attacker full administrative access. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 26, 2026

Stored XSS in the Drupal Media Folders contributed module (versions 0.0.0 through 1.0.8) allows network-accessible injection of persistent malicious scripts that execute in the browsers of users who subsequently view affected media folder pages. The CVSS scope change (S:C) confirms the payload crosses the application security boundary into the victim's browser session, enabling session hijacking or privilege escalation against authenticated users including administrators. No active exploitation has been confirmed - no CISA KEV listing, no public exploit code, and an EPSS of 0.15% (4th percentile) - and a vendor patch is available via Drupal security advisory SA-contrib-2026-080.

RemediationAI

The primary remediation is to upgrade the Drupal Media Folders module to version 1.0.8 or later, as documented in Drupal Security Advisory SA-contrib-2026-080 (https://www.drupal.org/sa-contrib-2026-080). The patch is confirmed available from the vendor. As a compensating control prior to patching, administrators should restrict the permissions that allow creation or modification of media folders to the minimum necessary trusted roles, reducing the set of accounts that could inject a payload; note this may impact content editor workflows. Configuring a Content Security Policy (CSP) header that blocks inline script execution can further limit the blast radius of any stored XSS payload, though CSP alone is not a substitute for patching. Drupal's built-in text format filtering should also be reviewed to ensure no format permits unescaped HTML in folder-related fields.

Affected VersionsENISA

Media Folders 0.0.0 <1.0.8

Affected Packages

composer drupal/media_folders fix: 1.0.8
euvd media_folders fix: 1.0.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Drupal Media Folders (CPE: cpe:2.3:a:drupal:media_folders:*:*:*:*:*:*:*:*) is a Drupal contributed module that extends the platform's core media library with hierarchical folder organization. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), meaning user-supplied input - likely a folder name, description, or metadata field - is stored in the database and later rendered in HTML without adequate sanitization or escaping. In Stored XSS, unlike reflected variants, the attacker's payload persists server-side and fires automatically for every subsequent viewer of the affected page, making it more dangerous per injection. The CVSS S:C (scope changed) metric confirms the injected JavaScript executes in the victim's browser context, outside the Drupal application's own origin.

Know when Media Folders gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (drupal) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Stored XSS submission realistically requires at minimum a content contributor role (PR:L); scope change and victim browser interaction (UI:R) are retained from the provided vector.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (drupal).

CVSS VectorVendor: drupal

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Aug 26, 2026 - 15:52 NVD
6.1 (None) 6.1 (MEDIUM)
CVE Published
Aug 25, 2026 - 22:22 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal Media Folders allows Stored XSS. This issue affects Media Folders versions: from 0.0.0 to 1.0.8.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
contributed Drupal module for niche media folder management, not widely deployed
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy