{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "15.108.0"
              },
              {
                "introduced": "16.0.0-beta.1"
              },
              {
                "fixed": "16.18.3"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "a2ab8a654ad157cd377242e9481f600e37361049"
            },
            {
              "fixed": "19407482519b46af94b1c80bf4f544ab4dbc8e9c"
            },
            {
              "fixed": "69be97cf314e53e314678c5af98fef25f5c2d7e6"
            },
            {
              "fixed": "628e103f7ffe307447d9fc9e2c572cbddedfa3b5"
            },
            {
              "fixed": "91d3ded038d1c901b73f4a2293e134d691c1662d"
            }
          ],
          "repo": "https://github.com/frappe/frappe",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-wx8j-cw4r-vrhv"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47199.json"
  },
  "details": "Frappe is a full-stack web application framework. Prior to 16.18.3 and 15.108.0, check_safe_sql_query permitted SELECT INTO OUTFILE queries, which could potentially work on self-hosted sites if database permissions are not well aligned and MySQL FILE privileges are available. This issue is fixed in versions 16.18.3 and 15.108.0.",
  "id": "CVE-2026-47199",
  "modified": "2026-07-16T03:31:03.644314489Z",
  "published": "2026-07-10T21:14:12.195Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/frappe/frappe/releases/tag/v15.108.0"
    },
    {
      "type": "WEB",
      "url": "https://github.com/frappe/frappe/releases/tag/v16.18.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47199.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/frappe/frappe/security/advisories/GHSA-wx8j-cw4r-vrhv"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47199"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/commit/628e103f7ffe307447d9fc9e2c572cbddedfa3b5"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/commit/91d3ded038d1c901b73f4a2293e134d691c1662d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/pull/39345"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/pull/39346"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Frappe: check_safe_sql_query Permits SELECT INTO OUTFILE"
}