CVE-2024-40492: Heartbeat Chat v · Cross-site Scripting
Source CVE Database V5
Not known to be exploited · CVSS 7.1 High.
Data as of 26 Oct 2026, 13:47 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 56% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 17 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
To mitigate CVE-2024-40492 effectively, organizations should implement a multi-layered approach: 1) Apply patches or updates from Heartbeat Chat vendors as soon as they become available. 2) In the interim, enforce strict input validation and sanitization on the setname function to block malicious scripts, using a whitelist approach for allowed characters. 3) Implement robust output encoding on all user-supplied data rendered in the UI to prevent script execution. 4) Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers. 5) Educate users about the risks of interacting with untrusted links or inputs within the chat application to reduce the likelihood of triggering the exploit. 6) Monitor application logs and network traffic for unusual activities indicative of attempted XSS attacks. 7) Consider deploying Web Application Firewalls (WAFs) with rules targeting XSS payloads specific to Heartbeat Chat. These targeted steps go beyond generic advice and focus on the unique aspects of this vulnerability.
Description
Cross Site Scripting vulnerability in Heartbeat Chat v.15.2.1 allows a remote attacker to execute arbitrary code via the setname function.