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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

CVSS 4.2 · Medium EPSS 0.09% · P25
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:L
Source: NVD (National Vulnerability Database)
Vulnerability Type
对特殊元素的转义处理不恰当
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
AmauriCtarteaucitron.js < 1.22.0 -

II. Public POCs for CVE-2025-48939

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-48939

登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2025-48939

No comments yet


Leave a comment