# CVE-2023-3620: tarteaucitron.js stored cross-site scripting in attribute handling

Source: https://junglewise.ai/threats/cve-2023-3620-tarteaucitron-js-stored-cross-site-scripting-in-attribute-handling  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-07-11. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2023-3620 · Severity: low · CVSS 3 · Published 2023-07-11

tarteaucitron.js is a JavaScript library used to manage cookie consent and privacy notices on websites. An attacker with stored data access (such as via an admin panel) can inject malicious JavaScript that executes in the browsers of all website visitors, potentially stealing session cookies, credentials, or redirecting users to phishing sites.

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

## Quick answers

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

**How severe is CVE-2023-3620?** Low severity, with a CVSS score of 3, published 11 July 2023.

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

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

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

**Am I affected by CVE-2023-3620?** 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.13.1 or later

  ```sh
  npm install tarteaucitronjs@1.13.1
  ```


## Technical details

This is a stored cross-site scripting (XSS) vulnerability in the tarteaucitron.js library prior to version 1.13.1, arising from improper sanitization of HTML attributes. The vulnerable code reads element attributes without adequate filtering, allowing attackers to inject arbitrary JavaScript. An attacker must be able to control stored data (such as cookie consent configuration) that the library processes. The fix filters attributes to prevent XSS payload injection. Users should upgrade to v1.13.1 or later.

## Affected products

- tarteaucitron tarteaucitron.js prior to 1.13.1

## Identifiers

- CVE-2023-3620
- GHSA-f44m-65h3-99vc

## Timeline

- 2023-07-11: disclosed
- 2023-07-11: patched: v1.13.1 released with fix

## References

- [https://github.com/amauric/tarteaucitron.js/commit/c4c2fcf2b2212ce968bdcae145bb74283c441e5f](https://github.com/amauric/tarteaucitron.js/commit/c4c2fcf2b2212ce968bdcae145bb74283c441e5f)

## 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)
