GHSA-p5g4-v748-6fh8 · Severity: medium · Ecosystem: npm — tarteaucitron.js allows url scheme injection via unfiltered inputs
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.
Conclusion & alert: CVE-2025-31476 is rated Moderate Risk (41.9/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.46%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-19 | 0.21% | 0.46% | +0.24% |
| 2 | 2026-05-16 | 0.45% | 0.21% | -0.24% |
| 3 | 2026-05-12 | — | 0.45% | — |
Full EPSS history (11 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 4.8 | 3.1 | MEDIUM |
|
1.7 | 2.7 | [email protected] |
GHSA-p5g4-v748-6fh8 · Severity: medium · Ecosystem: npm — tarteaucitron.js allows url scheme injection via unfiltered inputs
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| amauri | tarteaucitronjs | < 1.20.1 | cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:* |
| tacjs_project | tacjs | >= 8.x-1.0, < 8.x-6.7 | cpe:2.3:a:tacjs_project:tacjs:*:*:*:*:*:drupal:*:* |
| URL | Tags |
|---|---|
| https://github.com/AmauriC/tarteaucitron.js/commit/2fa1e01023bce2e4b813200600bb1619d56ceb02 | Patch |
| https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-p5g4-v748-6fh8 | Third Party Advisory |
| https://www.drupal.org/sa-contrib-2025-027 | Vendor Advisory |