CVE-2025-48939

CVE-2025-48939 is a medium-severity vulnerability in Amauri Tarteaucitronjs with a CVSS 3.x base score of 4.2. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-138.

Key facts

Description

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 behavior or failure to load the script path correctly. This issue arises because in some browser environments, named DOM elements become properties on the global document object. An attacker with control over the HTML could exploit this to change the CDN domain of tarteaucitron. This issue has been patched in version 1.22.0.

Frequently asked questions

What is CVE-2025-48939?
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 behavior or failure to load the script path correctly. This issue arises because in some browser environments, named DOM elements become properties on the global document object. An attacker with control over the HTML could exploit this to change the CDN domain of tarteaucitron. This issue has been patched in version 1.22.0.
How severe is CVE-2025-48939?
CVE-2025-48939 has a CVSS 3.x base score of 4.2, rated medium severity. It is exploitable over local access with low attack complexity, requires high privileges and user interaction. Impact on confidentiality is none, integrity low, and availability low.
Is CVE-2025-48939 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (7th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-48939?
CVE-2025-48939 affects Amauri Tarteaucitronjs. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-48939?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2025-48939 have an EU (EUVD) identifier?
Yes. CVE-2025-48939 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-19885.
When was CVE-2025-48939 published?
CVE-2025-48939 was published on 2025-07-03 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Amauri Tarteaucitronjs

All CVEs affecting Amauri Tarteaucitronjs →

Other CWE-138 vulnerabilities

Browse all CWE-138 vulnerabilities →