Loading...
Skip to main content

CVE-2022-4361 — Vulnerability in org.keycloak:keycloak-services —...

CRITICAL

Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC

Published June 30, 2023Updated February 16, 2024Source: osv

Summary

AssertionConsumerServiceURL is a Java implementation for SAML Service Providers (org.keycloak.protocol.saml). Affected versions of this package are vulnerable to Cross-site Scripting (XSS). AssertionConsumerServiceURL allows XSS when sending a crafted SAML XML request.

Advisory Timeline

  • First published June 30, 2023 (1200 days ago).
  • Last revised February 16, 2024 — 230 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.keycloak:keycloak-services to 21.1.2 or later
<!-- Update pom.xml dependency version to 21.1.2 for org.keycloak:keycloak-services -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.keycloak:keycloak-services
maven
1.0-alpha-1, 1.0-alpha-1-12062013, 1.0-alpha-2, 1.0-alpha-3 (+149 more)21.1.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2022-4361?
Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
How do I check if my project is affected by CVE-2022-4361?
CVE-2022-4361 affects org.keycloak:keycloak-services. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-4361 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
10.0

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-3p62-6fjh-3p5h

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies