What’s Vulnerable › Vulnerabilities
CVE-2024-3851: Unrestricted File Upload Leading to XSS in imartinez/privategpt
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-05-16 · updated 2026-06-17
- Weakness: CWE-79
Description
A stored Cross-Site Scripting (XSS) vulnerability exists in the 'imartinez/privategpt' repository due to improper validation of file uploads. Attackers can exploit this vulnerability by uploading malicious HTML files, such as those containing JavaScript payloads, which are then executed in the context of the victim's session when accessed. This could lead to the execution of arbitrary JavaScript code in the context of the user's browser session, potentially resulting in phishing attacks or other malicious actions. The vulnerability affects the latest version of the repository.
Affected products
- imartinez/privategpt: through 0.6.2
References
- https://huntr.com/bounties/cae1a492-4e09-4d56-8e11-17703bdfe653
- https://huntr.com/bounties/cae1a492-4e09-4d56-8e11-17703bdfe653
Get alerted when CVE-2024-3851 or the next vulnerability affects your stack