CVE-2025-1467 tarteaucitron Cross-site Scripting (XSS)
An attacker can execute arbitrary scripts in the victim's browser via the getElemWidth and getElemHeight functions in the tarteaucitronjs library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-1467?
CVE-2025-1467 is a medium-severity cross-site scripting vulnerability in tarteaucitronjs, published on 23 Feb 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Versions of the package tarteaucitronjs before 1.17.0 are vulnerable to Cross-site Scripting (XSS) via the getElemWidth() and getElemHeight(). This is related to [SNYK-JS-TARTEAUCITRONJS-8366541](https://security.snyk.io/vuln/SNYK-JS-TARTEAUCITRONJS-8366541)
Weakness: CWE-79
Which versions are affected by CVE-2025-1467?
2 open source packages ship an affected version, including tarteaucitronjs.
| Package | Affected | Fixed in |
|---|---|---|
tarteaucitronjs npm | All versions | 1.17.0 |
tarteaucitronjs npm | All versions | 1.17.0 |
How do I fix CVE-2025-1467?
Upgrade tarteaucitronjs to 1.17.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-1467 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1467 exists.
Sources
Also known as GHSA-8wp9-x25p-8794.