Drupal security updates, in plain English · Module

Simple OAuth (OAuth2) & OpenID Connect

26,946 sites report using it · on drupal.org · 2 security updates explained here

This module allows a website to securely share access with other applications using digital tokens.

Below is every security update for Simple OAuth (OAuth2) & OpenID Connect 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.

Simple OAuth (OAuth2) & OpenID Connect

Critical · 26,946 sites report using it · SA-CONTRIB-2026-296 · on drupal.org · Week of 4 November 2026

The module does not properly restrict who can configure the access settings. An administrator account could create malicious settings to gain full control over the site as another user. They could view any information or alter any data including the code itself.

  • Who could do thisOnly someone with an administrator login.
  • Does it apply to youSites are affected if an attacker has the access right to add or update consumer settings.
  • 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 Simple OAuth (OAuth2) & OpenID Connect to 5.2.6, 6.0.10 or 6.1.4, whichever branch you are on.

For developers: what the fix changed

The fix introduces a new validation constraint `Oauth2PrivilegedConsumerField` and its validator in `src/Plugin/Validation/Constraint/Oauth2PrivilegedConsumerFieldValidator.php` to restrict modifications to privileged consumer fields. It requires the new `administer consumer access settings` permission to change the `roles`, `user_id` and `third_party` fields, preventing unauthorised privilege escalation.

Also in this release The release also updates GitLab CI templates, reduces logging severity for expired tokens, fixes authorisation for clients with empty string secrets and prevents echoing request headers.

5.2.5 to 5.2.6 6 commits, 18 files including 1 test.

  • .gitlab-ci.yml +22 −106
  • config/install/simple_oauth.oauth2_token.bundle.access_token.yml +1 −0
  • config/install/simple_oauth.oauth2_token.bundle.auth_code.yml +1 −0
  • config/install/simple_oauth.oauth2_token.bundle.refresh_token.yml +1 −0
  • simple_oauth.module +11 −0 fix
  • simple_oauth.permissions.yml +5 −0 fix
  • simple_oauth.services.yml +9 −1
  • src/Authentication/Provider/SimpleOauthAuthenticationProvider.php +29 −11
  • src/Controller/Oauth2AuthorizeController.php +20 −6
  • src/Controller/Oauth2Token.php +19 −3
  • src/Entity/Form/Oauth2GenerateKeyForm.php +14 −3
  • src/EventSubscriber/ExceptionLoggingSubscriber.php +65 −0

Full diff, 5.2.5 to 5.2.6 · Full diff, 6.0.9 to 6.0.10 · Full diff, 6.1.3 to 6.1.4

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

Simple OAuth (OAuth2) & OpenID Connect

Moderately critical · 27,587 sites report using it · SA-CONTRIB-2026-242 · on drupal.org · Week of 21 October 2026

The module could cache a token's access rights in a way that let them be reused for another user's token. An ordinary account on the site could view restricted information and alter or add new data by gaining access rights they do not have.

  • Who could do thisOnly someone with a login on your site.
  • Does it apply to youAn attacker needs a token and a more privileged user's token with the same scopes must be used first.
  • 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 Simple OAuth (OAuth2) & OpenID Connect to 6.1.3.

For developers: what the fix changed

The fix introduces a new cache context `oauth2_subject_roles` in `src/Cache/Oauth2SubjectRolesCacheContext.php` and applies it to `DecoratedUserRolesAccessPolicy` and `Oauth2AccessPolicy` to ensure that cached permissions vary by the token subject's full roles, preventing permission leakage between users with the same scopes.

6.1.2 to 6.1.3 1 commit, 6 files including 1 test.

  • simple_oauth.services.yml +7 −2 fix
  • src/Access/DecoratedUserRolesAccessPolicy.php +23 −5 fix
  • src/Access/Oauth2AccessPolicy.php +103 −18 fix
  • src/Access/TokenAuthUserResolver.php +45 −0 fix
  • src/Cache/Oauth2SubjectRolesCacheContext.php +75 −0 fix

Full diff, 6.1.2 to 6.1.3

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.