SA-CONTRIB-2026-348: CSRF

Published Dec 2, 2026
·
Updated

This module organizes media entities into a directory structure. It provides a media browser for selecting, uploading, and managing media. The module doesn't sufficiently protect several of its routes against cross-site request forgery (CSRF). An attacker could trick a user with the relevant permissions into performing actions without their knowledge.

Credit

Pierre Rudloff (prudloff)(the Drupal Security Team), Roald Nel (roaldnel), Adam Zambrzycki (zambrey)

Affected Software

1 affected componentFixes available
composer/drupal/media_directories<3.0.1
3.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/media_directories to a version that resolves this vulnerability.

    Fixed in 3.0.1

Event History

Dec 2, 2026
Advisory Published
via Drupal·12:00 AM
Data Sourced
via Drupal·12:00 AM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Who could be affected by a CSRF attack against these routes?

Users who have the permissions needed to perform actions through the module's media browser are the relevant targets. An attacker would need to trick one of those users into making a request without their knowledge.

2

What actions are exposed?

The affected routes are used by the module's media browser, which supports selecting, uploading, and managing media. The provided information does not identify the specific routes or individual actions lacking CSRF protection.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203