CVE-2025-31476
Description
tarteaucitron.js is a compliant and accessible cookie banner. A vulnerability was identified in tarteaucitron.js, allowing a user with high privileges (access to the site's source code or a CMS plugin) to enter a URL containing an insecure scheme such as javascript:alert(). Before the fix, URL validation was insufficient, which could allow arbitrary JavaScript execution if a user clicked on a malicious link. An attacker with high privileges could insert a link exploiting an insecure URL scheme, leading to execution of arbitrary JavaScript code, theft of sensitive data through phishing attacks, or modification of the user interface behavior. This vulnerability is fixed in 1.20.1.
How to fix
- amauri tarteaucitronjs1.20.1 or later
- tacjs_project tacjs8.x-6.7 or later
- tarteaucitronjs1.20.1 or later
- drupal/tacjs6.7.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| amauri tarteaucitronjs | v < 1.20.1 | 1.20.1 |
| tacjs_project tacjs | 8.x-1.0 ≤ v < 8.x-6.7 | 8.x-6.7 |
| tarteaucitronjsnpm | v < 1.20.1 | 1.20.1 |
| drupal/tacjsPackagist:https://packages.drupal.org/8 | v < 6.7.0 | 6.7.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.