Description
tarteaucitron.js before 1.37.0 contains a cross-site scripting vulnerability because getElemAttr resolves 'data-' prefixed attributes while the https-only guard validates the unprefixed attribute. Attackers who can place markup, such as CMS authors, can add data-url with a javascript: URL beside a benign url to execute script in the site's origin via iframe src.
Published: 2026-10-16
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: Cross‑Site Scripting (XSS)
Action: Apply Patch
AI Analysis

Impact

Tarteaucitron.js versions before 1.37.0 contain a cross‑site scripting flaw caused by a mismatch between getElemAttr's resolution of data-prefixed attributes and the library’s https‑only guard that validates unprefixed attributes. This discrepancy allows an attacker who can inject HTML markup, such as a CMS author, to add a data‑url attribute with a javascript: URL adjacent to a normal URL. When the library processes the attributes, the javascript is executed in the site’s origin context via an iframe source. The result is a classic XSS that can run arbitrary script on behalf of the user visiting the affected page.

Affected Systems

Any deployment of the tarteaucitron.js library older than version 1.37.0 is vulnerable. The affected product, maintained by AmauriC, is listed in the Common Platform Enumeration as amauri:tarteaucitronjs and is used on sites that include the library for cookie banner management.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate severity. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting no large‑scale exploitation has been observed. Attacks require the ability to insert markup into the page – for example, a site administrator or CMS user – after which the malicious data‑url is processed by the library. The exploit path is therefore conditional on content injection privileges but can deliver code that runs with the site’s origin.

Generated by OpenCVE AI on October 16, 2026 at 18:57 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update tarteaucitron.js to version 1.37.0 or later.
  • If an upgrade cannot be performed immediately, remove or neutralize the code that processes data‑url attributes, or sanitize all user‑supplied markup to ensure javascript: URLs are stripped before getElemAttr runs.
  • Restrict sites so that only trusted users can inject custom markup, and enforce a strict whitelist of allowable tags and attributes to prevent the placement of malicious data‑url attributes.

Generated by OpenCVE AI on October 16, 2026 at 18:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 17:45:00 +0000

Type Values Removed Values Added
Description tarteaucitron.js before 1.37.0 contains a cross-site scripting vulnerability because getElemAttr resolves 'data-' prefixed attributes while the https-only guard validates the unprefixed attribute. Attackers who can place markup, such as CMS authors, can add data-url with a javascript: URL beside a benign url to execute script in the site's origin via iframe src.
Title tarteaucitron.js before 1.37.0 XSS via getElemAttr Attribute Validation Mismatch
First Time appeared Amauri
Amauri tarteaucitronjs
Weaknesses CWE-79
CPEs cpe:2.3:a:amauri:tarteaucitronjs:*:*:*:*:*:*:*:*
Vendors & Products Amauri
Amauri tarteaucitronjs
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

Amauri Tarteaucitronjs
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-16T17:40:02.702Z

Reserved: 2026-10-16T14:31:23.499Z

Link: CVE-2026-111713

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-16T18:17:55.580

Modified: 2026-10-16T19:00:33.600

Link: CVE-2026-111713

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T19:00:11Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')