CVE-2025-48939: tarteaucitron.js is a compliant and accessible cookie banner
CVE-2025-48939 is a medium-severity flaw (CVSS 4.2) affecting tarteaucitronjs. 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. Prior to version 1.22.0, a vulnerability was identified in tarteaucitron.js where document.currentScript was accessed without verifying that it referenced an actual <script> element. If an attacker injected an HTML element, it could clobber the document.currentScript property. This causes the script to resolve incorrectly to an element instead of the <script> tag, leading to unexpected
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.2 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | High |
| User interaction | Required |
| EPSS exploit chance | 0.2% (top 90%) |
| CISA exploited list | No |
| Weakness | CWE-138 |
| Published | 2025-07-03 |
| 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-48939?
tarteaucitronjs: upgrade to 1.22.0. Exact commands for each OS are on this page.
Is CVE-2025-48939 being exploited?
CVE-2025-48939 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-48939 affect?
CVE-2025-48939 affects tarteaucitronjs. Severity is medium (CVSS 4.2). tarteaucitron.js is a compliant and accessible cookie banner. Prior to version 1.22.0, a vulnerability was identified in tarteaucitron.js where document.currentScript was accessed without verifying that it referenced an actual <script> elem
How urgent is CVE-2025-48939?
Priority 22/100. Public exploit reference
Related CVEs
- CVE-2026-22809 MEDIUM 4.4 UPGRADE tarteaucitron.js is a compliant and accessible cookie banner
- CVE-2025-31476 MEDIUM 4.8 UPGRADE 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