Vulnerability

CVE-2025-31476

mediumCVSS 3.1 4.8Published 7 Apr 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Amauri tarteaucitronjs
  • Tacjs Project tacjs

Weakness type

References

  • github.com /AmauriC/tarteaucitron.js/commit/2fa1e01023bce2e4b813200600…
  • github.com /AmauriC/tarteaucitron.js/security/advisories/GHSA-p5g4-v74…
  • www.drupal.org /sa-contrib-2025-027

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning