CVE-2025-31476

Medium

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.

SeverityMedium
CVSS4.8
Exploit probability—
ProductAmauri Tarteaucitronjs
PublishedApr 7, 2025
First seenApr 7, 2025

How to fix

Update
  • 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

ProductAffected versionsFixed in
amauri tarteaucitronjsv < 1.20.11.20.1
tacjs_project tacjs8.x-1.0 ≤ v < 8.x-6.78.x-6.7
tarteaucitronjsnpmv < 1.20.11.20.1
drupal/tacjsPackagist:https://packages.drupal.org/8v < 6.7.06.7.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.