tarteaucitron.js allows url scheme injection via unfiltered inputs
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| AmauriC | tarteaucitron.js | before 1.20.1 | 1.20.1 | Patch available | CNA |
| — | tarteaucitronjs (npm) | before 1.20.1 | 1.20.1 | Patch available | GHSA-p5g4-v748-6fh8 |
- tarteaucitron.js VendorAmauriC Affected before 1.20.1 Fixed in 1.20.1 Patch available CNA
- tarteaucitronjs (npm) Vendor— Affected before 1.20.1 Fixed in 1.20.1 Patch available GHSA-p5g4-v748-6fh8
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:* | before 1.20.1 | Vulnerable | AmauriC |
| cpe:2.3:a:tacjs_project:tacjs:*:*:*:*:*:drupal:*:* | 8.x-1.0 to before 8.x-6.7 | Vulnerable | Tacjs Project |
- cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:* Versions before 1.20.1 Vulnerable ·AmauriC
- cpe:2.3:a:tacjs_project:tacjs:*:*:*:*:*:drupal:*:* Versions 8.x-1.0 to before 8.x-6.7 Vulnerable ·Tacjs Project
Remediation
- Fix · CNA tarteaucitron.js (AmauriC) Fixed in 1.20.1
- Fix · GHSA-p5g4-v748-6fh8 tarteaucitronjs (npm) Fixed in 1.20.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-31476
- 2026-10-03 Alias added: GHSA-p5g4-v748-6fh8
References
Advisory 3
More AmauriC Tarteaucitronjs vulnerabilities
- TI-2025-22656 tarteaucitron.js allows prototype pollution via custom text injection CVSS 3.1MEDIUM 6.6
- TI-2025-22399 tarteaucitron.js allows UI manipulation via unrestricted CSS injection CVSS 3.1MEDIUM 6.6
- TI-2026-18326 tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability CVSS 3.1MEDIUM 4.4
- TI-2025-31077 tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript CVSS 3.1MEDIUM 4.2
Sources
- CVE-2025-31476 · CVE Program
- CVE-2025-31476 · NVD
- FIRST EPSS
- GHSA-p5g4-v748-6fh8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences