# CVE-2025-1467: tarteaucitron Cross-site Scripting in getElemWidth and getElemHeight

Source: https://junglewise.ai/threats/cve-2025-1467-tarteaucitron-cross-site-scripting-in-getelemwidth-and  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-02-23. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2025-1467 · Severity: low · CVSS 3.1 · Published 2025-02-23

tarteaucitron is a popular JavaScript consent management library used to display cookie notices and manage user privacy choices on websites. The library contains a stored or reflected cross-site scripting (XSS) vulnerability in width and height calculation functions that could allow attackers to inject malicious scripts and steal sensitive data, deface content, or perform actions on behalf of users visiting affected sites.

Technologies: [tarteaucitronjs (npm)](https://junglewise.ai/threats/technologies/tarteaucitronjs). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2025-1467 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-1467 being exploited in the wild.

**How severe is CVE-2025-1467?** Low severity, with a CVSS score of 3.1, published 23 February 2025.

**Which products and versions are affected?** tarteaucitronjs (npm) SEMVER:introduced=0,fixed=1.17.0.

**Is there a fix for CVE-2025-1467?** Yes. tarteaucitronjs (npm): upgrade to 1.17.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-1467 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2025-1467?** Check whether you run tarteaucitronjs (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- tarteaucitronjs (npm): upgrade to 1.17.0 or later

  ```sh
  npm install tarteaucitronjs@1.17.0
  ```


## Technical details

The vulnerability is a CWE-79 Cross-site Scripting flaw in the getElemWidth() and getElemHeight() methods of tarteaucitron versions before 1.17.0. These functions improperly handle user input or DOM attributes without adequate sanitization or encoding, allowing attackers to inject executable JavaScript code. The attack requires user interaction (visiting a malicious page) but has a network attack vector. An attacker can exploit this by crafting a page with malicious width or height attribute values that get processed by the vulnerable functions, resulting in arbitrary script execution in the context of the user's browser. The vulnerability was fixed in version 1.17.0 by using the safer getElemAttr utility method.

## Affected products

- Amuri Cardon tarteaucitronjs before 1.17.0

## Identifiers

- CVE-2025-1467
- GHSA-8wp9-x25p-8794

## Timeline

- 2025-02-23: disclosed
- 2025-02-23: patched: Fix released in version 1.17.0

## References

- [https://github.com/AmauriC/tarteaucitron.js/issues/1184](https://github.com/AmauriC/tarteaucitron.js/issues/1184)

## Related threats

- [AmauriC tarteaucitron.js unauthorized cookie deletion via data-cookie attribute](https://junglewise.ai/threats/cve-2026-49977-amauric-tarteaucitron-js-unauthorized-cookie-deletion-via-data)
- [tarteaucitron.js Regular Expression Denial of Service](https://junglewise.ai/threats/cve-2026-22809-tarteaucitron-js-regular-expression-denial-of-service)
- [tarteaucitron.js DOM Clobbering via document.currentScript](https://junglewise.ai/threats/cve-2025-48939-tarteaucitron-js-dom-clobbering-via-document-currentscript)
- [tarteaucitron.js prototype pollution in custom text injection](https://junglewise.ai/threats/cve-2025-31475-tarteaucitron-js-prototype-pollution-in-custom-text-injection)
- [tarteaucitron.js CSS injection enabling UI manipulation](https://junglewise.ai/threats/cve-2025-31138-tarteaucitron-js-css-injection-enabling-ui-manipulation)
