Drupal security updates, in plain English · Module

REST & JSON API Authentication for Drupal

1,520 sites report using it · on drupal.org · 2 security updates explained here

This module protects data feeds by requiring a special key to access them.

Below is every security update for REST & JSON API Authentication for Drupal 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.

REST & JSON API Authentication for Drupal

Critical · 1,520 sites report using it · SA-CONTRIB-2026-298 · on drupal.org · Week of 4 November 2026

The module fails to block access when the special key has not been set up. Anyone could bypass the security checks to view hidden information. They could also alter any data on the site including the code itself.

  • Who could do thisAnyone visiting the site. No login needed.
  • Does it apply to youSites are affected when data feed security is turned on but the special key has not been created.
  • Has it been used in attacksNo sign of it.
  • How urgentDrupal rates this critical. Cyber Essentials expects a fix within 14 days. Do it this week.

Tell your developerUpdate REST & JSON API Authentication for Drupal to 3.2.1.

For developers: what the fix changed

The fix adds a check in ApiAuthenticationApiToken::validateUserAndToken() to explicitly reject requests if the expected API token is not a string or is empty, preventing authentication bypass when no key is configured. It also adds validation in MiniOrangeAPIAuth::validateForm() to prevent saving an application without generating an API key.

Also in this release The release also includes minor code cleanups, such as removing unused imports and fixing trailing commas, alongside new automated tests.

3.2.0 to 3.2.1 1 commit, 12 files including 2 tests.

  • config/schema/rest_api_authentication.schema.yml +6 −0
  • src/ApiAuthenticationApiToken.php +6 −0 fix
  • src/Controller/RestApiAuthenticationController.php +3 −3
  • src/Form/MiniOrangeAPIAuth.php +30 −1 fix
  • src/Form/UpgradePlansForm.php +2 −3
  • src/MiniorangeApiAuthConstants.php +4 −2
  • src/MiniorangeApiAuthSupport.php +1 −1
  • src/Routing/RouteSubscriber.php +0 −3
  • src/Services/RestApiLogger.php +0 −1
  • src/Utilities.php +1 −1

Full diff, 3.2.0 to 3.2.1

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

REST & JSON API Authentication for Drupal

Moderately critical · 1,665 sites report using it · SA-CONTRIB-2026-182 · on drupal.org · Week of 23 September 2026

Anyone without logging in could bypass the security checks for some data feed requests. They could read private information from the data feed. They could not modify or delete any of that information.

  • Who could do thisAnyone visiting the site. No login needed.
  • 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 REST & JSON API Authentication for Drupal to 3.2.0.

For developers: what the fix changed

The fix updates `RestAPI::applies()` in `src/Authentication/Provider/RestAPI.php` and `DisallowAPIRequests::check()` in `src/PageCache/DisallowAPIRequests.php` to use `$request->getPathInfo()` instead of `$request->getRequestUri()` for path matching. It also replaces a literal string check for `?_format=` with `$request->query->has('_format')` to prevent attackers from bypassing authentication by reordering query parameters.

Also in this release The release also added GitLab CI configuration and a new functional test.

3.1.0 to 3.2.0 1 commit, 4 files including 1 test.

  • .gitlab-ci.yml +18 −0
  • src/Authentication/Provider/RestAPI.php +8 −3 fix
  • src/PageCache/DisallowAPIRequests.php +2 −2 fix

Full diff, 3.1.0 to 3.2.0

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.