CVE-2025-31476: tarteaucitron.js is a compliant and accessible cookie banner
CVE-2025-31476 is a medium-severity flaw (CVSS 4.8) affecting tarteaucitronjs, tacjs. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.8 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | High |
| User interaction | Required |
| EPSS exploit chance | 0.4% (top 70%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2025-04-07 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-31476?
tarteaucitronjs: upgrade to 1.20.1; tacjs: upgrade to 8.x-6.7. Exact commands for each OS are on this page.
Is CVE-2025-31476 being exploited?
CVE-2025-31476 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-31476 affect?
CVE-2025-31476 affects tarteaucitronjs, tacjs. Severity is medium (CVSS 4.8). 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
How urgent is CVE-2025-31476?
Priority 24/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-22809 MEDIUM 4.4 UPGRADE tarteaucitron.js is a compliant and accessible cookie banner
- CVE-2025-48939 MEDIUM 4.2 UPGRADE tarteaucitron.js is a compliant and accessible cookie banner
- CVE-2025-31475 MEDIUM 5.5 UPGRADE tarteaucitron.js is a compliant and accessible cookie banner
- CVE-2025-31138 MEDIUM 5.5 UPGRADE tarteaucitron.js is a compliant and accessible cookie banner