CVE-2025-48939

MEDIUM EPSS 7.3%
Published Jul 3, 202512mo ago · Modified Jun 17, 20261w ago
4.2 CVSS 3.1
Medium
Find Similar
Published Jul 3, 2025 12mo ago
Last Modified Jun 17, 2026 1w ago

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.

CVSS Details

Base Score
4.2
Exploitability
1.1
Impact
2.7
Vector string
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:L
Attack Vector Local
Attack Complexity Low
Privileges Required High
User Interaction Required
Scope Changed
Confidentiality None
Integrity Low
Availability Low

Threat Intelligence

EPSS Exploit Probability
7.3% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-138

Affected Products 1

VendorProductVersionRange
amauritarteaucitronjs* <1.22.0

References 2

  • github.com https://github.com/AmauriC/tarteaucitron.js/commit/230a3b69d363837acfa895823d841e0608826ba3
    Patch
  • github.com https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-q43x-79jr-cq98
    ExploitPatchVendor Advisory

Remediation

  • github.com https://github.com/AmauriC/tarteaucitron.js/commit/230a3b69d363837acfa895823d841e0608826ba3
    Patch
  • github.com https://github.com/AmauriC/tarteaucitron.js/security/advisories/GHSA-q43x-79jr-cq98
    ExploitPatchVendor Advisory