> CVE-2025-31476 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2025-04-07 15:15
MODIFIED
2025-09-04 17:43
CVSS_SCORE V3
4.8
EPSS (Prob. Exploit)
0.36%
Top 71.3%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-11-04 OSV 🔗 2026-03-01

> 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

Tacjs Project - Tacjs
>= 8.x-1.0 < 8.x-6.7
Amauri - Tarteaucitronjs
< 1.20.1

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
High (H)
Authentifié avec privilèges administratifs
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> GITHUB SECURITY ADVISORY

GHSA-p5g4-v748-6fh8 MODERATE

tarteaucitron.js allows url scheme injection via unfiltered inputs

AFFECTED PACKAGES:
NPM / tarteaucitronjs
< 1.20.1
Fixed in: 1.20.1

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

tarteaucitron.js allows url scheme injection via unfiltered inputs

AFFECTED PACKAGES:
Unknown / Unknown
41 versions affected
ALIASES:
DRUPAL-CONTRIB-2025-027, GHSA-p5g4-v748-6fh8

> HISTORIQUE DES MODIFICATIONS

Première apparition
07/04/2025 15:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 15:02
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME