Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-48939— tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript

Quick assessment

Affected
AmauriC tarteaucitron.js
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

tarteaucitron.js是Amauri CHAMPEAUX个人开发者的一个 cookie 管理器。 tarteaucitron.js 1.22.0之前版本存在安全漏洞,该漏洞源于未验证document.currentScript引用,可能导致脚本路径加载错误。

CVSS 4.2 · Medium EPSS 0.18% · P8
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-48939

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对特殊元素的转义处理不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
tarteaucitron.js 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
tarteaucitron.js是Amauri CHAMPEAUX个人开发者的一个 cookie 管理器。 tarteaucitron.js 1.22.0之前版本存在安全漏洞,该漏洞源于未验证document.currentScript引用,可能导致脚本路径加载错误。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
AmauriC tarteaucitron.js < 1.22.0 -

II. Public POCs for CVE-2025-48939

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-48939

登录查看更多情报信息。

Patches & Fixes for CVE-2025-48939 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2025-48939

No comments yet


Leave a comment