{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.36.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d297e274a35dccd0f5d935e9d5934e0f7e9c0a87"
            },
            {
              "fixed": "f21a3adae2fbb8582b60b121783c597fe6895ff4"
            }
          ],
          "repo": "https://github.com/dani-garcia/vaultwarden",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-pfp2-jhgq-6hg5"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-352"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47158.json"
  },
  "details": "Vaultwarden is a Bitwarden-compatible server written in Rust. Prior to 1.36.0, Vaultwarden's SSO authorization flow did not bind the OAuth state parameter accepted by /connect/authorize to the initiating browser session, allowed attacker-controlled PKCE parameters, and left SsoAuth records intact after failed token exchange, allowing an unauthenticated attacker to induce IdP authentication and redeem tokens for a fully authenticated session. This issue is fixed in version 1.36.0.",
  "id": "CVE-2026-47158",
  "modified": "2026-08-12T03:51:11.093560423Z",
  "published": "2026-07-15T15:01:51.955Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/dani-garcia/vaultwarden/releases/tag/1.36.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47158.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-pfp2-jhgq-6hg5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47158"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dani-garcia/vaultwarden/commit/d297e274a35dccd0f5d935e9d5934e0f7e9c0a87"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dani-garcia/vaultwarden/pull/7163"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Vaultwarden: CSRF in SSO Authorization Flow"
}