Summary
Whatsapp-Chat-Exporter has Cross-Site Scripting vulnerability in HTML output of chats.
Workarounds
No workaround is available. Please update the exporter to the latest version.
References
https://github.com/KnugiHK/WhatsApp-Chat-Exporter/commit/bfdc68cd6ad53ceecf132773f9aaba50dd80fe79
https://owasp.org/www-community/attacks/xss/
Impact
A Cross-Site Scripting (XSS) vulnerability was found in the HTML output of chats. XSS is intended to be mitigated by Jinja's escape function. However, autoescape=True was missing when setting the environment. Although the actual impact is low, considering the HTML file is being viewed offline, an adversary may still be able to inject malicious payloads into the chat through WhatsApp. All users are affected.
Untrusted input is rendered as active markup in a victim's browser, which can run script in their session. Typical impact: session or credential theft, and actions taken as the user.
GHSA-8C6X-G4FW-8RF4 has a CVSS score of 5.4 (Medium). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (0.9.5); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
The vulnerability is patched in 0.9.5. All users are strongly advised to update the exporter to the latest version.
Frequently Asked Questions
- What is GHSA-8C6X-G4FW-8RF4? GHSA-8C6X-G4FW-8RF4 is a medium-severity cross-site scripting (XSS) vulnerability in Whatsapp-Chat-Exporter (pip), affecting versions < 0.9.5. It is fixed in 0.9.5. Untrusted input is rendered as active markup in a victim's browser, which can run script in their session.
- How severe is GHSA-8C6X-G4FW-8RF4? GHSA-8C6X-G4FW-8RF4 has a CVSS score of 5.4 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which versions of Whatsapp-Chat-Exporter are affected by GHSA-8C6X-G4FW-8RF4? Whatsapp-Chat-Exporter (pip) versions < 0.9.5 is affected.
- Is there a fix for GHSA-8C6X-G4FW-8RF4? Yes. GHSA-8C6X-G4FW-8RF4 is fixed in 0.9.5. Upgrade to this version or later.
- Is GHSA-8C6X-G4FW-8RF4 exploitable, and should I be worried? Whether GHSA-8C6X-G4FW-8RF4 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether GHSA-8C6X-G4FW-8RF4 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix GHSA-8C6X-G4FW-8RF4? Upgrade
Whatsapp-Chat-Exporterto 0.9.5 or later.