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.
Metrics
Affected Vendors & Products
References
History
Thu, 03 Jul 2025 20:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
Thu, 03 Jul 2025 16:45:00 +0000
Type | Values Removed | Values Added |
---|---|---|
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. | |
Title | tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript | |
Weaknesses | CWE-138 | |
References |
| |
Metrics |
cvssV3_1
|

Status: PUBLISHED
Assigner: GitHub_M
Published: 2025-07-03T16:26:31.304Z
Updated: 2025-07-03T19:15:22.798Z
Reserved: 2025-05-28T18:49:07.580Z
Link: CVE-2025-48939

Updated: 2025-07-03T19:14:17.594Z

Status : Received
Published: 2025-07-03T17:15:39.300
Modified: 2025-07-03T17:15:39.300
Link: CVE-2025-48939

No data.