ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2025-011

Details

This module enables you to integrate the site with the Google Tag Manager (GTM) application.

The module doesn't have the "restrict access" flag on the "administer google\_tag\_container" permission. A user with this permission can load a GTM container that completely changes the page or inserts malicious JS, resulting in a cross site scripting vulnerability.

This vulnerability is mitigated by the fact that an attacker must have a role with the aforementioned permission.

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/google_tag
All versions before 1.8.0 (fixed in 1.8.0)
From 2.0.0 before 2.0.8 (fixed in 2.0.8)

References