← Vulnerability feed

Vulnerability record · CVE-2024-3851 · published 16 May 2024

CVE-2024-3851: Pribai privategpt cross-site scripting vulnerability

Pribai · Privategpt

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.

5.4 CVSS 3.1 Medium EPSS 0.32% · top 77.9% CWE-79 · Cross-site scripting
5.4CVSS 3.1 base score
0.32%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://huntr.com/bounties/cae1a492-4e09-4d56-8e11-17703bdfe653 ExploitIssue TrackingThird Party Advisory
https://huntr.com/bounties/cae1a492-4e09-4d56-8e11-17703bdfe653 ExploitIssue TrackingThird Party Advisory

Track CVE-2024-3851 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-4343Pribai privategpt os command injection vulnerabilityA Python command injection vulnerability exists in the `SagemakerLLM` class's `complete()` method within `./private_gpt/components/llm/custom/sagemak…EPSS 2.7%7.5CVE-2024-8018Pribai privategpt allocation without limits vulnerabilityA vulnerability in imartinez/privategpt version 0.5.0 allows for a Denial of Service (DOS) attack. When uploading a file, if an attacker appends a la…EPSS 0.62%7.5CVE-2024-12063Pribai privategpt uncontrolled resource consumption vulnerabilityA Denial of Service (DoS) vulnerability exists in the file upload feature of imartinez/privategpt version v0.6.2. The vulnerability is due to imprope…EPSS 0.77%7.5CVE-2024-3403Pribai privategpt path traversal vulnerabilityimartinez/privategpt version 0.2.0 is vulnerable to a local file inclusion vulnerability that allows attackers to read arbitrary files from the files…EPSS 1.1%7.2CVE-2024-5186Pribai privategpt server-side request forgery (ssrf) vulnerabilityA Server-Side Request Forgery (SSRF) vulnerability exists in the file upload section of imartinez/privategpt version 0.5.0. This vulnerability allows…EPSS 0.34%6.1CVE-2024-8029Pribai privategpt cross-site scripting vulnerabilityAn XSS vulnerability was discovered in the upload file(s) process of imartinez/privategpt v0.5.0. Attackers can upload malicious SVG files, which exe…EPSS 0.35%6.1CVE-2024-5936Pribai privategpt open redirect vulnerabilityAn open redirect vulnerability exists in imartinez/privategpt version 0.5.0 due to improper handling of the 'file' parameter. This vulnerability allo…EPSS 30%5.4CVE-2024-5935Pribai privategpt cross-site request forgery vulnerabilityA Cross-Site Request Forgery (CSRF) vulnerability in version 0.5.0 of imartinez/privategpt allows an attacker to delete all uploaded files on the ser…EPSS 0.18%

Source: NIST National Vulnerability Database (record CVE-2024-3851), CISA KEV, FIRST EPSS (scores of 2026-09-29). This page is refreshed as NVD updates the record.