Drupal security updates, in plain English · Module

Media Folders

522 sites report using it · on drupal.org · 1 security update explained here

This module provides a better interface for managing and selecting media items in a folder structure.

Below is every security update for Media Folders that this site has covered, newest first. Each one says who could exploit it, whether it applies to your site, how urgent it is, and what to tell your developer. If your site uses this module and you are not sure which version, that is the first question to ask whoever looks after it.

Media Folders

Moderately critical · 522 sites report using it · SA-CONTRIB-2026-080 · on drupal.org · Week of 22 July 2026

An ordinary account holder could add malicious code to the names and descriptions of media items or folders. This code could then run in the browser of another user to view restricted information or make unauthorised changes.

  • Who could do thisOnly someone with a login on your site.
  • Does it apply to youThis applies if an attacker has an access right to create or edit media items or folders.
  • Has it been used in attacksNo sign of it.
  • How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.

Tell your developerUpdate Media Folders to 1.0.8.

For developers: what the fix changed

Removes `Markup::create()` from folder descriptions in `MediaFoldersUiBuilder` to allow Twig auto-escaping, properly escapes strings in `highlightSearchResult()` before applying markup, and applies the `striptags` filter to the description in the `media-folders-folder.html.twig` template.

Also in this release Added support for SVG Image Field, fixed multiple selection on Mac OS, injected TypedConfigManagerInterface into MediaFoldersConfigForm, and fixed an image preview issue.

1.0.7 to 1.0.8 7 commits, 7 files.

  • js/common.js +1 −1
  • js/folders.js +1 −1
  • js/widget.js +1 −1
  • src/Form/AddWidgetFileForm.php +3 −0
  • src/Form/MediaFoldersConfigForm.php +11 −3
  • src/MediaFoldersUiBuilder.php +10 −5 fix
  • templates/media-folders-folder.html.twig +1 −1 fix

Full diff, 1.0.7 to 1.0.8

The comparison is against the release immediately before the fix. If your site is on an older release, more will have changed.

Not sure what your site is running?

Send me your Drupal site's address.

I'll tell you what I can see from outside, what the Drupal 10 end of life on 9 December means for it, and what it would cost to have me keep it patched. There's no charge for that and no obligation. peter@peterbrady.co.uk


Get in touch

Tell me who you are, what your organisation does, and what you need. That might be a Drupal site that needs looking after, an upgrade to get done before December, or an agency that needs Drupal cover.

If I can help, I'll say so and suggest a call. If I can't, I'll tell you straight away rather than waste your time.

peter@peterbrady.co.uk

For context: I work mainly with UK charities, membership bodies and research organisations, and with the agencies that look after their websites. Not recruiters.

Or start smaller and connect with me on LinkedIn. That's where I post what I find digging around in charity and grants data, and where the free tools turn up first.