{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "15.116.0"
              },
              {
                "introduced": "16.0.0"
              },
              {
                "fixed": "16.29.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "fcbe4d62d66cb4a5d46ff9c5004af1a80a5f6976"
            },
            {
              "fixed": "c1afa13e12834dcdc1d82c4ba8bb3e5652163656"
            },
            {
              "fixed": "06613fc60b44d5736007ae3107cdab029b2ae045"
            },
            {
              "fixed": "12568e2d54c4abba70bc0261387053fa28f90988"
            },
            {
              "fixed": "1e0a3b941231d74a71ff1a43eee2e9f63c88712d"
            },
            {
              "fixed": "6ed8acd869199feb3a2598887d471448297edf07"
            }
          ],
          "repo": "https://github.com/frappe/frappe",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-78c5-55xg-jm7m"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-601"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66057.json"
  },
  "details": "Frappe is a full-stack web application framework. Prior to 15.116.0 and 16.29.0, the OAuth login flow uses an unsanitized client-controlled state parameter to select post-authentication navigation, allowing a crafted state value to redirect a user to an attacker-chosen location. This issue is fixed in versions 15.116.0 and 16.29.0.",
  "id": "CVE-2026-66057",
  "modified": "2026-10-15T02:30:37.586489469Z",
  "published": "2026-10-13T16:48:03.798Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/frappe/frappe/releases/tag/v15.116.0"
    },
    {
      "type": "WEB",
      "url": "https://github.com/frappe/frappe/releases/tag/v16.29.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66057.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/frappe/frappe/security/advisories/GHSA-78c5-55xg-jm7m"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-66057"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/commit/12568e2d54c4abba70bc0261387053fa28f90988"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/commit/1e0a3b941231d74a71ff1a43eee2e9f63c88712d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/commit/6ed8acd869199feb3a2598887d471448297edf07"
    },
    {
      "type": "FIX",
      "url": "https://github.com/frappe/frappe/pull/40962"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Frappe: Open Redirect via Unsanitized OAuth State Param."
}