DRUPAL-CONTRIB-2025-094

See a problem?
Import Source
https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/gtm/DRUPAL-CONTRIB-2025-094.json
JSON Data
https://api.osv.dev/v1/vulns/DRUPAL-CONTRIB-2025-094
Aliases
  • CVE-2025-8362
Published
2025-07-30T16:31:23Z
Modified
2026-09-10T03:45:46Z
Summary
[none]
Details

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.

References
Credits

Affected packages

Packagist:https://packages.drupal.org/8 / drupal/gtm

Package

Name
drupal/gtm
Purl
pkg:composer/drupal/gtm?repository_url=https:%2F%2Fpackages.drupal.org%2F8

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.10.0
Database specific
Show details
{
    "constraint": "<1.10.0"
}

Database specific

affected_versions
"<1.10.0"
source
"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/gtm/DRUPAL-CONTRIB-2025-094.json"