Skip to content
CVE PROGRAM SOURCE RECORD5.1 Medium

CVE-2026-111713

tarteaucitron.js before 1.37.0 XSS via getElemAttr Attribute Validation Mismatch

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

AmauriC tarteaucitron.js

Default version status: unaffected

  • 1.20.1 to < 1.37.0affected
pkg:github/AmauriC/tarteaucitron.js

References