What’s Vulnerable › Vulnerabilities
CVE-2026-111713: tarteaucitron.js before 1.37.0 XSS via getElemAttr Attribute Validation Mismatch
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-16 · updated 2026-10-20
- Weakness: CWE-79
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
- AmauriC tarteaucitron.js: from 1.20.1 before 1.37.0 — fixed in 1.37.0
How to fix
Upgrade to a fixed version: AmauriC tarteaucitron.js 1.37.0. Check the vendor advisory for mitigations.
References
- https://github.com/AmauriC/tarteaucitron.js/blob/v1.36.0/tarteaucitron.js#L2641-L2648
- https://github.com/AmauriC/tarteaucitron.js/commit/068653bd47f5d4a493251ca8e15bd2b0be9b544f
- https://github.com/AmauriC/tarteaucitron.js/compare/v1.36.0...v1.37.0
- https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.37.0
- https://www.vulncheck.com/advisories/tarteaucitron-js-before-1.37.0-xss-via-getelemattr-attribute-validation-mismatch
Get alerted when CVE-2026-111713 or the next vulnerability affects your stack