Unrated

drupal/gtm - SA-CONTRIB-2025-094

  • Disclosed: 30.07.2025
  • Updated: 11.10.2026 12:18

This module enables you to integrate Google Tag Manager (GTM) into your Drupal site by allowing administrators to configure and embed GTM container snippets.

The module doesn't sufficiently sanitize the GTM container ID under the scenario where a user with the Administer gtm permission enters malicious input into the GTM-ID field. This value is directly inserted into a <script> tag, making the site vulnerable to Cross-site Scripting (XSS) attacks.

This vulnerability is mitigated by the fact that an attacker must have a role with the permission Administer gtm, and the input field is limited to 20 characters.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package drupal/gtm < 1.10.0 1.10.0
Drupal module drupal/gtm < 1.10.0 1.10.0

References

CVSS score -
Weakness (CWE)
-
Platform
Composer, Drupal
Package
drupal/gtm
Disclosed
30.07.2025
Updated
11.10.2026 12:18

Sources and licenses

OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2025-094 - CC BY-SA 2.0; code GPL-2.0-or-later

Vulnerability history: drupal/gtm

All published vulnerabilities of this package (Drupal module), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.