CVE-2024-3851

Public Exploit
Unrestricted File Upload Leading to XSS in imartinez/privategpt

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.

Category

5.4
CVSS
Severity: Medium
CVSS 3.1 •
CVSS 3.0 •
EPSS 0.13%
Third-Party Advisory huntr.com
Affected: imartinez imartinez/privategpt
Published at:
Updated at:

References

Link Tags
https://huntr.com/bounties/cae1a492-4e09-4d56-8e11-17703bdfe653 third party advisory issue tracking exploit

Frequently Asked Questions

What is the severity of CVE-2024-3851?
CVE-2024-3851 has been scored as a medium severity vulnerability.
How to fix CVE-2024-3851?
To fix CVE-2024-3851, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-3851 being actively exploited in the wild?
It is possible that CVE-2024-3851 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-3851?
CVE-2024-3851 affects imartinez imartinez/privategpt.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.