CVE-2025-1467
JavaScript vulnerability analysis and mitigation

Overview

Versions of the package tarteaucitronjs before 1.17.0 are vulnerable to Cross-site Scripting (XSS) via the getElemWidth() and getElemHeight() methods. The vulnerability was discovered on January 22, 2024, and was disclosed on February 9, 2025, receiving the identifier CVE-2025-1467. This vulnerability affects the tarteaucitronjs package, which provides compliance to the European cookie law (Snyk Advisory).

Technical details

The vulnerability exists in the getElemWidth() and getElemHeight() methods of tarteaucitronjs, which directly use getAttribute() without proper sanitization. This is a follow-up to a previous vulnerability fixed in version 1.16.0. The fix implemented in version 1.17.0 involves modifying these methods to use the getElemAttr utility method to prevent XSS attacks (GitHub Issue, GitHub Commit).

Impact

The vulnerability allows for Cross-site Scripting (XSS) attacks, which could enable attackers to steal cookies, hijack user sessions, expose sensitive information, enable access to privileged services and functionality, and deliver malware. The attack requires active user interaction and has limited impact on integrity and confidentiality (Snyk Advisory).

Exploitability

A proof-of-concept exploit has been demonstrated, showing that the vulnerability can be triggered by using malicious input in the width and height attributes of elements processed by the affected methods. The exploit requires user interaction to be successful (GitHub Gist).

Mitigation and workarounds

Users should upgrade tarteaucitronjs to version 1.17.0 or higher, which contains the security fix. The fix involves using the getElemAttr utility method instead of direct attribute access for width and height values (Snyk Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-73421CRITICAL9.1
  • JavaScript logoJavaScript
  • next-auth
NoYesAug 13, 2026
CVE-2026-73420CRITICAL9.1
  • JavaScript logoJavaScript
  • next-auth
NoYesAug 13, 2026
CVE-2026-73305HIGH8.8
  • JavaScript logoJavaScript
  • @budibase/server
NoNoAug 13, 2026
CVE-2026-73408HIGH7.6
  • JavaScript logoJavaScript
  • @budibase/server
NoNoAug 13, 2026
CVE-2026-73428MEDIUM4.6
  • JavaScript logoJavaScript
  • action_text-trix
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management