Drupal security updates, in plain English · Module

File Download

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

This module provides a way for users to download files and images directly.

Below is every security update for File Download 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.

File Download

Moderately critical · 1,496 sites report using it · SA-CONTRIB-2026-362 · on drupal.org · Week of 2 December 2026

The module does not properly clean up file names before displaying them. An ordinary account on the site could upload a file with a malicious name that runs scripts in the browser of anyone viewing it. This could allow them to view hidden data or change information on the site.

  • Who could do thisOnly someone with a login on your site.
  • Does it apply to youAny site using this module.
  • 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 File Download to 2.0.2.

For developers: what the fix changed

The fix removes the use of `Markup::create()` for the link title in `template_preprocess_download_file_link()` in `file_download.module`, ensuring that filenames are properly escaped rather than being treated as safe HTML.

Also in this release The release also includes Drupal 11 and 12 compatibility fixes, dependency injection improvements, automated tests, and route configuration updates.

2.0.1 to 2.0.2 8 commits, 23 files including 3 tests.

  • file_download.info.yml +1 −1
  • file_download.module +11 −63 fix
  • file_download.routing.yml +3 −2
  • file_download.services.yml +5 −0
  • modules/file_download_counter/README.md +22 −2
  • modules/file_download_counter/config/install/file_download_counter.settings.yml +1 −0
  • modules/file_download_counter/config/schema/file_download_counter.schema.yml +3 −0
  • modules/file_download_counter/file_download_counter.info.yml +1 −1
  • modules/file_download_counter/file_download_counter.module +25 −55
  • modules/file_download_counter/file_download_counter.services.yml +13 −0
  • modules/file_download_counter/file_download_counter.tokens.inc +6 −47
  • modules/file_download_counter/file_download_counter.views.inc +0 −79

Full diff, 2.0.1 to 2.0.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.