Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-10729

CVE-2026-10729: Thinkst Canarytokens XSS Vulnerability

CVE-2026-10729 is an XSS and HTML injection flaw in Thinkst Applied Research Canarytokens that affects notification emails for Slow Redirect and Cloned Website tokens. This article covers technical details, affected versions, and mitigation.

Published:

CVE-2026-10729 Overview

CVE-2026-10729 is an HTML injection vulnerability in Thinkst Applied Research Canarytokens. The flaw affects notification emails generated for Slow Redirect and Cloned Website Canarytoken types. Attackers can inject HTML markup that renders inside email clients that display HTML content. This enables interface manipulation and Cross-Site Scripting (XSS) within those email clients. The issue is tracked under CWE-74 — Improper Neutralization of Special Elements in Output. Affected versions span Docker tag sha-c42435e through versions before sha-bfda4df, and Git commits c42435e through versions before bfda4df.

Critical Impact

An attacker triggering a Canarytoken can inject HTML or script content into the alert email, manipulating what the responder sees and potentially executing script in HTML-rendering email clients.

Affected Products

  • Thinkst Canarytokens Docker images from tag sha-c42435e before sha-bfda4df
  • Thinkst Canarytokens source from Git commit c42435e before commit bfda4df
  • Self-hosted Canarytokens deployments using the Slow Redirect and Cloned Website token types

Discovery Timeline

  • 2026-06-03 - CVE-2026-10729 published to NVD
  • 2026-06-03 - Last updated in NVD database

Technical Details for CVE-2026-10729

Vulnerability Analysis

Canarytokens are tripwire artifacts that send a notification when accessed. When a Slow Redirect or Cloned Website token is triggered, the Canarytokens server emails the token owner with context about the request. The vulnerability arises because attacker-controlled values reaching that email are not sanitized for HTML output. Email clients that render HTML treat the injected markup as part of the alert. The result is interface manipulation in the inbox and script execution in clients that evaluate inline scripts or event handlers.

Root Cause

The root cause is improper neutralization of special elements during email template rendering, classified as [CWE-74]. Untrusted input from the HTTP request that triggers the token is concatenated into the HTML email body without escaping characters such as <, >, and ". Output encoding is missing on the email-generation path for the two affected token types.

Attack Vector

Exploitation requires an attacker to trigger an affected Canarytoken with crafted input fields, then rely on the recipient opening the HTML alert email. The attack vector is network-based but requires user interaction from the email recipient. Refer to the GitHub Security Advisory GHSA-hmjv-pj8j-8fg7 for technical details on the injection points. No verified proof-of-concept code has been published.

Detection Methods for CVE-2026-10729

Indicators of Compromise

  • Canarytoken alert emails containing unexpected HTML tags, inline styles, or <script> elements in fields such as the requesting User-Agent, Referer, or URL path.
  • Outbound requests to attacker-controlled domains originating from email clients after an analyst opens a Canarytoken notification.
  • Slow Redirect or Cloned Website token triggers where request metadata contains characters like <, >, or javascript: schemes.

Detection Strategies

  • Inspect raw email source for Canarytoken alerts and flag any HTML constructs in fields that should contain only text.
  • Apply email gateway rules that sanitize or quarantine messages containing scripts inside Canarytoken notification templates.
  • Correlate token-trigger web logs against the content of dispatched alerts to identify payloads designed for HTML injection.

Monitoring Recommendations

  • Monitor the Canarytokens server logs for Slow Redirect and Cloned Website trigger events that include suspicious characters in request headers or query strings.
  • Track the deployed Canarytokens Docker image digest and alert when it predates sha-bfda4df.
  • Review mail-client telemetry for unexpected outbound connections initiated from accounts that receive Canarytoken alerts.

How to Mitigate CVE-2026-10729

Immediate Actions Required

  • Upgrade self-hosted Canarytokens deployments to a build at or after Git commit bfda4df or Docker image sha-bfda4df.
  • Until patched, disable or remove Slow Redirect and Cloned Website tokens that may be exposed to untrusted requesters.
  • Configure recipient mail clients to render Canarytoken alerts as plain text rather than HTML.

Patch Information

The fix is published in the Canarytokens repository. Pull the Docker image tagged sha-bfda4df or later, or rebuild from Git commit bfda4df or later. Full remediation details are available in the GitHub Security Advisory GHSA-hmjv-pj8j-8fg7.

Workarounds

  • Force plain-text rendering for the mailbox that receives Canarytoken alerts to neutralize injected HTML.
  • Route Canarytoken notifications through a webhook or Slack channel instead of email until the patched build is deployed.
  • Apply an outbound mail filter on the Canarytokens server that strips HTML tags from notification bodies.
bash
# Pull and run the patched Canarytokens image
docker pull thinkst/canarytokens:sha-bfda4df
docker tag thinkst/canarytokens:sha-bfda4df canarytokens:current
docker compose up -d

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.