Skip to content
Heist/ feed
Back to feed
Medium

Unrestricted File Upload Leading to XSS in imartinez/privategpt

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-3851
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 14:03 UTC · Revision 1

Source evidence

Unrestricted File Upload Leading to XSS in imartinez/privategpt

core-osv · Original source

Published 16 May 2024, 09:03 UTC

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.

osv:CVE-2024-3851
Complete source record
{
  "id": "0a86de37a816ca0efccccc320aeca6fc202d3ca9a3ccb4e30b6d3ba3f241811e",
  "url": "https://osv.dev/vulnerability/CVE-2024-3851",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Unrestricted File Upload Leading to XSS in imartinez/privategpt",
    "summary": "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.",
    "evidence": "osv:CVE-2024-3851",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-3851",
      "aliases": [
        "CVE-2024-3851"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/zylon-ai/private-gpt",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "22904ca8ad1b812f7e2e448432b3bca5941808ac"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:pribai:privategpt:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.6.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.6.2",
            "v0.6.1",
            "v0.6.0",
            "fix/local-setup",
            "v0.5.0",
            "v0.4.0",
            "v0.3.0",
            "v0.2.0",
            "v0.1.0",
            "v0.0.2",
            "v0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3851.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.843771088Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/cae1a492-4e09-4d56-8e11-17703bdfe653",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3851.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-3851"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "@huntr_ai",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3851.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-3851",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 503421,
  "published_at": "2024-05-16T09:03:44.053+00:00"
}