{
  "id": "CVE-2026-3872",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-3872",
  "published_at": "2026-04-02T12:37:30.633Z",
  "title": "Keycloak: keycloak: information disclosure due to redirect_uri validation bypass",
  "vendor": "Red Hat",
  "product": "Red Hat build of Keycloak 26.2",
  "cvss": {
    "score": 7.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A flaw was found in Keycloak. This issue allows an attacker, who controls another path on the same web server, to bypass the allowed path in redirect Uniform Resource Identifiers (URIs) that use a wildcard. A successful attack may lead to the theft of an access token, resulting in information disclosure.",
  "cwe": "CWE-601",
  "cpes": [
    "cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:text-only:*:*:*",
    "cpe:2.3:a:redhat:build_of_keycloak:26.2.15:*:*:*:text-only:*:*:*",
    "cpe:2.3:a:redhat:build_of_keycloak:26.2:*:*:*:text-only:*:*:*",
    "cpe:2.3:a:redhat:build_of_keycloak:26.4.11:*:*:*:text-only:*:*:*",
    "cpe:2.3:a:redhat:build_of_keycloak:26.4:*:*:*:text-only:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.2",
        "ranges": null,
        "fixed_in": [
          "26.2.15-1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.2",
        "ranges": null,
        "fixed_in": [
          "26.2-18"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.2",
        "ranges": null,
        "fixed_in": [
          "26.2-18"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.4",
        "ranges": null,
        "fixed_in": [
          "26.4.11-1"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.4",
        "ranges": null,
        "fixed_in": [
          "26.4-14"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat build of Keycloak 26.4",
        "ranges": null,
        "fixed_in": [
          "26.4-14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat build of Keycloak 26.2 to 26.2.15-1 or later.",
      "Upgrade Red Hat build of Keycloak 26.2 to 26.2-18 or later.",
      "Upgrade Red Hat build of Keycloak 26.2 to 26.2-18 or later.",
      "Upgrade Red Hat build of Keycloak 26.4 to 26.4.11-1 or later.",
      "Upgrade Red Hat build of Keycloak 26.4 to 26.4-14 or later.",
      "Upgrade Red Hat build of Keycloak 26.4 to 26.4-14 or later."
    ],
    "workarounds": [
      "To mitigate this vulnerability, avoid using wildcards in `redirect_uri` configurations within Keycloak. Restricting `redirect_uri` to explicit, fully qualified URIs prevents the bypass of validation logic. This configuration change may require a service restart or reload to take effect."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:6475"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:6476"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:6477"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:6478"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
