Drupal security updates, in plain English · Module

Media Alias Display

4,100 sites report using it · on drupal.org · 1 security update explained here

This module allows for direct viewing of a file with the web address alias.

Below is every security update for Media Alias Display 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 Alias Display

Moderately critical · 4,100 sites report using it · SA-CONTRIB-2026-245 · on drupal.org · Week of 21 October 2026

In some cases files may be served with a public cache header when they should be uncacheable. Anyone with no login could view cached versions of files with information they should not be able to access. They could not alter any files.

  • Who could do thisAnyone visiting the site. No login needed.
  • Does it apply to youDrupal must be configured to handle non public files using a custom or contributed module providing an additional file scheme, and an attacker must know to request a file that has previously been requested by a more privileged user and is still cached.
  • 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 Alias Display to 3.0.2 or 2.1.2, whichever branch you are on.

For developers: what the fix changed

Updates DisplayController::__invoke() in src/Controller/DisplayController.php to check file_additional_public_schemes when determining if a file response should be public or private. This ensures files that are not public are not cached.

Also in this release Adds an event subscriber to restore cache headers for media responses, updates CI configuration, and refactors tests.

3.0.1 to 3.0.2 3 commits, 8 files including 3 tests.

  • .gitlab-ci.yml +1 −46
  • media_alias_display.services.yml +4 −0
  • src/Controller/DisplayController.php +13 −0 fix
  • src/EventSubscriber/MediaAliasDisplayResponseSubscriber.php +51 −0
  • src/Response/CacheableBinaryFileResponse.php +3 −5

Full diff, 3.0.1 to 3.0.2 · Full diff, 2.1.1 to 2.1.2

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 membership bodies, charities 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.