AploSec / Disclosures / CVE-2026-111713
tarteaucitron.js before 1.37.0 XSS via getElemAttr Attribute Validation Mismatch
CVE-2026-111713 · published 2026-10-16
Summary
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.
Evidence
Reported to the maintainer with a proof of concept that reproduced against the affected release.
Remediation
Upgrade tarteaucitronjs to 1.37.0 or later.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/tarteaucitron-js-before-1.37.0-xss-via-getelemattr-attribute-validation-mismatch
- Fix commithttps://github.com/AmauriC/tarteaucitron.js/commit/068653bd47f5d4a493251ca8e15bd2b0be9b544f
- Vulnerable codehttps://github.com/AmauriC/tarteaucitron.js/blob/v1.36.0/tarteaucitron.js#L2641-L2648
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-111713
- Package
- tarteaucitronjs
- Ecosystem
- npm
- Weekly downloads
- 7k
- Affected
- 1.20.1 before 1.37.0
- Fixed
- 1.37.0
- Weakness
- CWE-79
- CNA
- VulnCheck
- Credit
- Zachariah Mithani