PT-2025-27811 · Unknown · Tarteaucitron.Js
Published
2025-07-03
·
Updated
2025-07-03
·
CVE-2025-48939
CVSS v3.1
4.2
Medium
| Vector | AV:L/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:L |
Name of the Vulnerable Software and Affected Versions:
tarteaucitron.js versions prior to 1.22.0
Description:
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, 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.Recommendations:
For versions prior to 1.22.0, update to version 1.22.0 to resolve the issue. As a temporary workaround, consider restricting access to the HTML elements that could be used to exploit this vulnerability, until the update can be applied.
Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Tarteaucitron.Js