LiveActive security incident?Get immediate response
CVE Record

CVE-2022-4361: Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerab...

Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the SAML or OIDC providers. The vulnerability can allow an attacker to execute malicious scripts by setting the AssertionConsumerServiceURL value or the redirect_uri.

CriticalCVSS 10Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

Keycloak could be tricked into running attacker-controlled script through SAML or OIDC provider values. Because Keycloak often protects login and identity workflows, compromise could affect sensitive sessions and trust decisions. The source rates this critical, but does not show active exploitation or a named fixed version.

Executive priority

Treat as urgent for any Keycloak 21.1.2 identity service. Identity compromise can create broad business impact, but the provided evidence does not confirm active exploitation.

Technical view

CVE-2022-4361 is a Keycloak XSS issue tied to AssertionConsumerServiceURL in SAML or redirect_uri in OIDC providers. The CVSS 3.1 vector is 10.0, network-reachable, low complexity, no privileges, no user interaction, and scope changed. Sources identify Keycloak 21.1.2 as affected.

Likely exposure

Organizations running Keycloak 21.1.2 with SAML or OIDC provider flows are the clearest exposure. The bundle marks default status as unaffected, so other versions should not be assumed vulnerable from these sources alone.

Exploitation context

The provided sources do not show CISA KEV listing or active exploitation. They describe possible malicious script execution through provider URL values, but do not provide evidence of exploitation in the wild.

Researcher notes

Evidence is limited to the CVE description, Red Hat Bugzilla reference, and upstream commit. Do not broaden affected versions without vendor confirmation. Focus validation on Keycloak 21.1.2 and SAML/OIDC URL-handling paths.

Mitigation direction

  • Check Red Hat and Keycloak guidance for the supported fixed version.
  • Prioritize review of internet-facing Keycloak SAML and OIDC deployments.
  • Apply a vendor-supported update containing the referenced Keycloak fix.
  • Restrict administrative changes to identity provider and client URL configuration.
  • Monitor identity configuration changes for unexpected redirect or ACS values.

Validation and detection

  • Inventory Keycloak versions and flag 21.1.2 for urgent review.
  • Identify enabled SAML and OIDC providers using external redirects or ACS URLs.
  • Confirm whether deployed code includes the referenced upstream commit.
  • Review recent provider/client configuration changes for suspicious URL values.
  • Verify remediation using vendor release notes or advisory confirmation.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-81: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-4361 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
10 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
10CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H3.96Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

10Critical
CVSS 3.1 vector shape for CVE-2022-4361Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
keycloakkeycloak21.1.2unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-81 · source CWE mapping

Improper Neutralization of Script in an Error Message Web Page

Improper Neutralization of Script in an Error Message Web Page represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.