Drupal security updates, in plain English · Module

Google Analytics GA4

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

This module adds tracking code to the website to provide insights into visitor behaviour.

Below is every security update for Google Analytics GA4 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.

Google Analytics GA4

Moderately critical · 2,151 sites report using it · SA-CONTRIB-2026-024 · on drupal.org · Week of 4 March 2026

The system does not clean up custom attributes added to the tracking code. A person with the right to change these settings could add malicious scripts that run on every page. They could see private information and change data on the website.

  • Who could do thisOnly someone with an administrator login.
  • Does it apply to youThis applies when a person has the access right to configure the tracking settings.
  • 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 Google Analytics GA4 to 1.1.14.

For developers: what the fix changed

The fix adds strict validation to the scripts_custom_attributes field in src/Form/Ga4GoogleAnalyticsSettings.php using a regex allowlist and filters the attributes in ga4_google_analytics_page_attachments within ga4_google_analytics.module to ensure only safe attributes are included.

1.1.13 to 1.1.14 1 commit, 2 files.

  • ga4_google_analytics.module +15 −0 fix
  • src/Form/Ga4GoogleAnalyticsSettings.php +51 −0 fix

Full diff, 1.1.13 to 1.1.14

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