# GHSA-8c6x-g4fw-8rf4: Whatsapp-Chat-Exporter has Cross-Site Scripting vulnerability in HTML output of chats.

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-07-10T21:54:36.000Z
- Modified: 2024-12-06T05:39:21.678Z
- Weaknesses: CWE-79

## Description

### 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.

### Patches
The vulnerability is patched in 0.9.5. All users are strongly advised to update the exporter to the latest version.

### 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/

(As written by GitHub Advisory Database.)

## Affected

- whatsapp-chat-exporter (PyPI): before 0.9.5

## References

- <https://github.com/KnugiHK/WhatsApp-Chat-Exporter/security/advisories/GHSA-8c6x-g4fw-8rf4> (web)
- <https://github.com/KnugiHK/WhatsApp-Chat-Exporter/commit/bfdc68cd6ad53ceecf132773f9aaba50dd80fe79> (web)
- <https://github.com/KnugiHK/WhatsApp-Chat-Exporter> (package)

## Sources

- GitHub Advisory Database: [GHSA-8c6x-g4fw-8rf4](https://github.com/advisories/GHSA-8c6x-g4fw-8rf4), CC-BY-4.0, modified 2024-12-06

---

Page: https://cve.day/GHSA-8c6x-g4fw-8rf4 · Whole record: https://cve.day/GHSA-8c6x-g4fw-8rf4.json · Rebuilt by cve.day 2026-11-25T22:56:34.612Z
