Executive brief
Thinkst Canarytokens, a tool used to create "digital tripwires" for detecting unauthorized access, is vulnerable to an HTML injection flaw. An attacker can manipulate the "memo" field in a token to include malicious code or links in the automated "fetch links" emails sent to users. This could be used to perform phishing attacks, display misleading information, or potentially execute malicious scripts depending on the recipient's email client.
Technical details
An HTML injection vulnerability exists in Thinkst Applied Research Canarytokens due to improper neutralization of the 'memo' field. When the system generates a "fetch links" email, it includes the user-supplied 'memo' content without adequate escaping or sanitization. A remote attacker can exploit this by injecting arbitrary HTML or JavaScript into the memo field. If a recipient opens the resulting email in a client that renders HTML, the injected content will execute or display, potentially leading to Cross-Site Scripting (XSS), phishing, or interface manipulation. The vulnerability is patched in Docker image sha-08c3f93d and subsequent versions.
Affected products
- Thinkst Applied Research Canarytokens Docker tag sha-c0f3cf142 before sha-08c3f93d; Git commit c0f3cf142 before 08c3f93d
Timeline
- 2026-06-10: disclosed
- 2026-06-10: advisory
- 2026-06-10: patched