AploSec / Disclosures / CVE-2026-111713

ReproducedFixed in 1.37.0CWE-79npm

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

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