Skip to content

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

MediumCVSS 5.4
Published
Updated
Exploit status
No public exploit known

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/

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi whatsapp-chat-exporter(PyPI) < 0.9.5; = 0.6; = 0.7.0; = 0.8.0 +5 more 0.9.5 Fixed

Affected products

ProductAffected versionsFixed in
pypi whatsapp-chat-exporter(PyPI) < 0.9.5 0.9.5
pypi whatsapp-chat-exporter(PyPI) = 0.6 No fix listed
pypi whatsapp-chat-exporter(PyPI) = 0.7.0 No fix listed
pypi whatsapp-chat-exporter(PyPI) = 0.8.0 No fix listed
pypi whatsapp-chat-exporter(PyPI) = 0.8.1 No fix listed
pypi whatsapp-chat-exporter(PyPI) = 0.8.2 No fix listed
pypi whatsapp-chat-exporter(PyPI) = 0.8.5 No fix listed
pypi whatsapp-chat-exporter(PyPI) = 0.9.0 No fix listed
pypi whatsapp-chat-exporter(PyPI) = 0.9.1 No fix listed

References