GHSA-8c6x-g4fw-8rf4: Whatsapp Chat Exporter Cross-Site Scripting Vulnerability
MODERATEGHSA-8c6x-g4fw-8rf4 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Whatsapp Chat Exporter libraries in the PyPI ecosystem. The issue involves whatsapp-chat-exporter has cross-site scripting vulnerability in html output of chats.. Remediation is available by upgrading affected packages to version 0.9.5.
GHSA-8c6x-g4fw-8rf4 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N).
How to Fix GHSA-8c6x-g4fw-8rf4
To remediate this vulnerability, upgrade all affected Whatsapp Chat Exporter dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install Whatsapp-Chat-Exporter>=0.9.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Whatsapp-Chat-Exporter
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-8c6x-g4fw-8rf4, inspect your installed packages using pip:
pip show Whatsapp-Chat-Exporter
Analyze the terminal output to locate any version of Whatsapp Chat Exporter in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.5), your application is affected.
Note: The pip show Whatsapp-Chat-Exporter command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Whatsapp Chat Exporter, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-8c6x-g4fw-8rf4 Affected Whatsapp Chat Exporter Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Whatsapp-Chat-Exporter
|
PyPI |
< 0.9.5
|
0.9.5
|
References
Frequently Asked Questions
What is GHSA-8c6x-g4fw-8rf4?
Which Whatsapp Chat Exporter versions are affected?
What version fixes GHSA-8c6x-g4fw-8rf4?
Is Whatsapp-Chat-Exporter affected?
What is the CVSS score of GHSA-8c6x-g4fw-8rf4?
What CWE is associated with GHSA-8c6x-g4fw-8rf4?
How can I check PyPI dependencies for GHSA-8c6x-g4fw-8rf4?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8c6x-g4fw-8rf4",
"modified" : "2023-07-10T21:54:36Z",
"published" : "2023-07-10T21:54:36Z",
"aliases" : [ ],
"summary" : "Whatsapp-Chat-Exporter has Cross-Site Scripting vulnerability in HTML output of chats.",
"details" : "### Impact\nA 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.\n\n### Patches\nThe vulnerability is patched in 0.9.5. All users are strongly advised to update the exporter to the latest version.\n\n### Workarounds\nNo workaround is available. Please update the exporter to the latest version.\n\n### References\nhttps://github.com/KnugiHK/WhatsApp-Chat-Exporter/commit/bfdc68cd6ad53ceecf132773f9aaba50dd80fe79\nhttps://owasp.org/www-community/attacks/xss/",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Whatsapp-Chat-Exporter"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/KnugiHK/WhatsApp-Chat-Exporter/security/advisories/GHSA-8c6x-g4fw-8rf4"
}, {
"type" : "WEB",
"url" : "https://github.com/KnugiHK/WhatsApp-Chat-Exporter/commit/bfdc68cd6ad53ceecf132773f9aaba50dd80fe79"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/KnugiHK/WhatsApp-Chat-Exporter"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-10T21:54:36Z",
"nvd_published_at" : null
}
}