Skip to main content
← All vulnerabilities
CVE-2025-31476GHSA-P5G4-V748-6FH8DRUPAL-CONTRIB-2025-027

tarteaucitron.js allows url scheme injection via unfiltered inputs

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.20.1, 6.7.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • AmauriC tarteaucitron.js

    fixed in 1.20.1

  • tarteaucitronjsnpm

    fixed in 1.20.1

  • drupal/tacjsPackagist

    fixed in 6.7.0

References 2

GitHub · AmauriC/tarteaucitron.js