Vulnerabilities · 2025 · Amauri
CVE-2025-48939
Amauri Tarteaucitronjs vulnerability
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.
Affected products
Tarteaucitronjs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Amauri Tarteaucitronjs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-q43x-79jr-cq98 · Exploit
- github.com/AmauriC/tarteaucitron.js/commit/230a3b69d363837acfa895823d841e0608826ba3 · Patch
- nvd.nist.gov/vuln/detail/CVE-2025-48939
- github.com/advisories/GHSA-q43x-79jr-cq98
- nvd.nist.gov/vuln/detail/CVE-2025-48939
- cve.org/CVERecord?id=CVE-2025-48939
More vulnerabilities in Amauri products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.