AploSec / Disclosures / CVE-2026-111713

Medium 5.1ReportedFixed in 1.37.0CWE-79npm

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

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