6.8medium
Unrestricted File Upload Leading to XSS in imartinez/privategpt
- Severity
- 6.8medium CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.32% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
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
| Product or package | Versions | Reported by |
|---|---|---|
| imartinez imartinez/privategpt | from unspecified up to latest | CVE List |
| pribai privategpt | up to 0.6.2 | NVD |
All scores
| @huntr_ai | 6.8medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Existe una vulnerabilidad de cross-site scripting (XSS) almacenado en el repositorio 'imartinez/privategpt' debido a una validación incorrecta de la carga de archivos. Los atacantes pueden aprovechar esta vulnerabilidad cargando archivos HTML maliciosos, como los que contienen payloads de JavaScript, que luego se ejecutan en el contexto de la sesión de la víctima cuando se accede a ellos. Esto podría dar lugar a la ejecución de código JavaScript arbitrario en el contexto de la sesión del navegador del usuario, lo que podría dar lugar a ataques de phishing u otras acciones maliciosas. La vulnerabilidad afecta a la última versión del repositorio.
References
| https://huntr.com/bounties/cae1a492-4e09-4d56-8e11-17703bdfe653 | exploit, issue-tracking, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-3851 changed 2024-08-01 | CVE Terms of Use |
| NVD | CVE-2024-3851 changed 2026-06-17 | Public domain |