Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-20195

A flaw was found in keycloak in versions before 13.0.0. A Self Stored XSS attack vector escalating to a complete account takeover is possible due to user-supplied data fields not being properly encoded and Javascript code being used to process the data. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-20195
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:05 UTC · Revision 1

Source evidence

CVE-2021-20195

core-osv · Original source

Published 28 May 2021, 11:15 UTC

A flaw was found in keycloak in versions before 13.0.0. A Self Stored XSS attack vector escalating to a complete account takeover is possible due to user-supplied data fields not being properly encoded and Javascript code being used to process the data. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

osv:CVE-2021-20195
Complete source record
{
  "id": "a015e8848ea72933711c0ef02d47dcd07396828af8009386e542d59a734a07ae",
  "url": "https://osv.dev/vulnerability/CVE-2021-20195",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-20195",
    "summary": "A flaw was found in keycloak in versions before 13.0.0. A Self Stored XSS attack vector escalating to a complete account takeover is possible due to user-supplied data fields not being properly encoded and Javascript code being used to process the data. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.",
    "evidence": "osv:CVE-2021-20195",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-20195",
      "aliases": [
        "CVE-2021-20195",
        "GHSA-q6w2-89hq-hq27"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/keycloak/keycloak",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0bb3d0d8a692521b7c43961ee44e2c910cab1d1f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "12.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "12.0.2",
            "12.0.1",
            "12.0.0",
            "2.4.0.Test",
            "1.3.0.Final",
            "1.1.0.Beta2",
            "1.0.0.Final",
            "1.0-final",
            "1.0-rc-1",
            "1.0-beta-4",
            "1.0-beta-2",
            "1.0-beta-1",
            "1.0-alpha-3",
            "1.0-alpha-2",
            "1.0-alpha-1",
            "1.0-alpha-1-12062013"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20195.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:24.334156068Z",
      "provider": "osv",
      "references": [
        "https://bugzilla.redhat.com/show_bug.cgi?id=1919143"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-20195",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 431125,
  "published_at": "2021-05-28T11:15:07.867+00:00"
}