Drupal security updates, in plain English · Module

AI File to Text

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

This module extracts text from uploaded documents and exposes that extraction to AI agents and automators as a tool.

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

AI File to Text

Moderately critical · 128 sites report using it · SA-CONTRIB-2026-251 · on drupal.org · Week of 21 October 2026

The module does not sufficiently check whether the current user is permitted to view a file before extracting its contents. An ordinary account on the site could view the contents of files they could not otherwise download, including files held in the private file system. They could not alter any files or settings.

  • Who could do thisOnly someone with a login on your site.
  • Does it apply to youAn attacker must have a role with the access right to invoke AI tools.
  • 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 AI File to Text to 1.0.1.

For developers: what the fix changed

The fix adds an access check in `src/Plugin/AiFunctionCall/FileToText.php` using a new `loadAccessibleFileByUri` method to ensure the current user has permission to view the requested file before extracting its text.

Also in this release The release also hardens XML loading against XXE and adds protection against ZIP decompression bombs.

1.0.0 to 1.0.1 4 commits, 9 files including 2 tests.

  • .cspell-project-words.txt +6 −0
  • ai_file_to_text.services.yml +4 −0
  • composer.json +1 −1
  • src/Extractor/OdtExtractor.php +7 −2
  • src/Extractor/PopplerPdfExtractor.php +3 −1
  • src/Plugin/AiFunctionCall/FileToText.php +48 −1 fix
  • src/Plugin/DocumentLoader/FileDocumentLoader.php +177 −2

Full diff, 1.0.0 to 1.0.1

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.