CVE-2026-137973 in Heym
Summary
by MITRE • 11/27/2026
Heym from 0.0.95 before 0.0.154 contains a stored cross-site scripting vulnerability that allows authenticated users to run script on the application origin by publishing HTML output mapper workflows. Attackers can set a workflow to anonymous GET and share the /api/workflows/{id}/execute link, causing visitors' browsers to send authenticated API requests to read or modify their workflows, credentials, and settings.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/27/2026
The Heym software application, specifically versions ranging from 0.0.95 up to but not including version 0.0.154, suffers from a critical stored cross-site scripting vulnerability that fundamentally compromises the integrity of authenticated user sessions through malicious workflow configurations. This flaw arises within the mechanism used for publishing HTML output mapper workflows, where the application fails to adequately sanitize or encode user-supplied input before storing it in the backend database and subsequently rendering it back to clients without proper context-aware escaping. Consequently, an attacker who possesses valid authentication credentials can inject arbitrary JavaScript code into a workflow definition that is then persistently stored on the server side rather than being transiently passed via URL parameters or form fields.
The operational impact of this vulnerability extends beyond simple script execution due to the specific configuration options available within the application's workflow management system. An authenticated attacker can configure a malicious workflow to be accessible via anonymous GET requests, effectively removing authentication requirements for accessing the endpoint that executes these workflows. By sharing the direct API link associated with executing this compromised workflow, typically formatted as /api/workflows/{id}/execute, the attacker lures victims into visiting or triggering this URL through social engineering tactics such as phishing emails or malicious links embedded in other platforms.
When a victim accesses this shared endpoint, their browser initiates an HTTP GET request to the application server. Because Heym relies on session-based authentication for its API endpoints, the victim's browser automatically attaches their active session cookies and authentication tokens to this outgoing request. The server processes the execution of the malicious workflow, which in turn serves back a response containing the attacker-controlled JavaScript payload embedded within an HTML context that is rendered by the victim's browser. This results in the immediate execution of arbitrary scripts under the security context of the application origin, bypassing same-origin policy restrictions and allowing the script to interact with the DOM and API endpoints as if it were legitimate application code.
This scenario facilitates a severe escalation of privileges where the attacker can perform actions on behalf of the victim without their knowledge or consent. The injected JavaScript can read sensitive data such as stored workflows, user credentials, and system settings by making additional authenticated AJAX requests to internal APIs while the victim's session is active. Furthermore, the script can modify these configurations, potentially altering workflow logic to exfiltrate more data, create backdoors for persistent access, or disrupt operational continuity by deleting critical automation rules. This represents a classic case of stored XSS leading to account takeover and data breach scenarios, leveraging the trust relationship between the user's browser and the application server.
From a classification perspective, this vulnerability aligns with CWE-79: Improper Neutralization of Input During Web Page Generation, commonly known as Cross-site Scripting (XSS). The specific mechanism involves stored persistence rather than reflected execution, which increases the severity due to its passive nature once deployed. In terms of adversary tactics, this exploit maps directly to MITRE ATT&CK technique T1059: Command and Scripting Interpreter, specifically JavaScript sub-technique, as well as T1204: User Execution, where the victim is tricked into performing an action that leads to compromise. The ability to access authenticated endpoints via anonymous triggers also touches upon aspects of improper authorization checks in workflow definitions, though the primary vector remains input validation failure.
Mitigation strategies must prioritize immediate patching to version 0.0.154 or later where this issue has been resolved through rigorous input sanitization and output encoding practices. Developers should implement strict Content Security Policy headers to restrict inline script execution and ensure that all user-supplied data is contextually encoded before being inserted into HTML, JavaScript, CSS, or URL contexts. Additionally, the application architecture should enforce authentication requirements for workflow execution endpoints regardless of how they are shared, ensuring that anonymous access does not bypass session validation. Implementing automated security testing in the CI/CD pipeline to detect stored XSS patterns during code review can further prevent similar vulnerabilities from being introduced into future releases.