AploSec / Disclosures / CVE-2026-111713
tarteaucitron.js before 1.37.0 XSS via getElemAttr Attribute Validation Mismatch
CVE-2026-111713 · published 2026-10-16
In plain words: this type of bug lets someone run scripts in another person's browser (cross-site scripting, XSS). A fixed release is listed.
Summary
CVE-2026-111713 affects tarteaucitronjs (npm) 1.20.1 before 1.37.0: XSS via data- attribute guard mismatch (CWE-79). Fixed in 1.37.0. CVSS 4.0 base score 5.1 (Medium), assigned by VulnCheck. Published 2026-10-16 by VulnCheck. Credit: Zachariah Mithani.
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. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
Upgrade tarteaucitronjs to 1.37.0 or later. Releases in the affected range (1.20.1 before 1.37.0) are vulnerable. See the linked advisory for details on affected release lines.
Timeline
- 2026-10-16 CVE published
- 2026-10-28 Public record last updated
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
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-111713
- Severity
- Medium 5.1CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- tarteaucitronjs
- Ecosystem
- npm
- Affected
- 1.20.1 before 1.37.0
- Fixed
- 1.37.0
- Weakness
- CWE-79
- CNA
- VulnCheck
- Credit
- Zachariah Mithanifinder