Read the docs
TI-2025-31077 Aliases CVE-2025-48939GHSA-q43x-79jr-cq98

tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript

Priority LOW 19CWE-138Published · Updated

Key facts

Attack vector
Local
Privileges required
High
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · Low · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00202 10th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed tarteaucitron.js (AmauriC): 1.22.0tarteaucitronjs (npm): 1.22.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
AmauriCtarteaucitron.jsbefore 1.22.01.22.0Patch availableCNA
—tarteaucitronjs (npm)before 1.22.01.22.0Patch availableGHSA-q43x-79jr-cq98
  • tarteaucitron.js VendorAmauriC Affected before 1.22.0 Fixed in 1.22.0 Patch available CNA
  • tarteaucitronjs (npm) Vendor— Affected before 1.22.0 Fixed in 1.22.0 Patch available GHSA-q43x-79jr-cq98

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:*before 1.22.0VulnerableAmauriC
  • cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:node.js:*:* Versions before 1.22.0 Vulnerable ·AmauriC

Remediation

  • Fix · CNA tarteaucitron.js (AmauriC) Fixed in 1.22.0
  • Fix · GHSA-q43x-79jr-cq98 tarteaucitronjs (npm) Fixed in 1.22.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-48939
  2. 2026-10-03 Alias added: GHSA-q43x-79jr-cq98

References

  • TI-2025-22656 tarteaucitron.js allows prototype pollution via custom text injection CVSS 3.1MEDIUM 6.6
  • TI-2025-22399 tarteaucitron.js allows UI manipulation via unrestricted CSS injection CVSS 3.1MEDIUM 6.6
  • TI-2025-22657 tarteaucitron.js allows url scheme injection via unfiltered inputs CVSS 3.1MEDIUM 4.8
  • TI-2026-18326 tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability CVSS 3.1MEDIUM 4.4

Sources