CVE-2024-8029 Stored XSS in imartinez/privategpt
Attackers can upload malicious SVG files to execute JavaScript, leading to session hijacking and data theft in PrivateGPT.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-8029?
CVE-2024-8029 is a medium-severity cross-site scripting vulnerability in imartinez/privategpt, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
An XSS vulnerability was discovered in the upload file(s) process of imartinez/privategpt v0.5.0. Attackers can upload malicious SVG files, which execute JavaScript when victims click on the file link. This can lead to user data theft, session hijacking, malware distribution, and phishing attacks.
Weakness: CWE-79
Which versions are affected by CVE-2024-8029?
It affects 1 product.
Products include Pribai Privategpt.
How do I fix CVE-2024-8029?
No fix has been published for CVE-2024-8029 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-8029 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8029 exists.
Other vulnerabilities in imartinez/privategpt
- CVE-2024-4343 Python Command Injection in imartinez/privategpt
- CVE-2024-5186 Server Side Request Forgery (SSRF) in imartinez/privategpt
- CVE-2024-12063 Denial of Service in imartinez/privategpt
- CVE-2024-8018 Denial of Service (DOS) in imartinez/privategpt
- CVE-2024-3403 Local File Inclusion in imartinez/privategpt
Sources
Also known as GHSA-34v4-5664-chqj.