Skip to main content

CVE-2022-4361 — Vulnerability in keycloak-services — CVE Details

CRITICAL

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

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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.84%). Schedule for your next planned update.

Does your project use an affected org.keycloak:keycloak-services version?

Paste your pom.xml to check it for CVE-2022-4361 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

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 (1245 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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Maven (1).

PackageFixed In
org.keycloak:keycloak-services Maven · Affected: 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. It has a 0.8% probability of exploitation within 30 days (EPSS score). 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

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.84%
EPSS percentile: 55.3

This is an above-median EPSS score — 55.3% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-3p62-6fjh-3p5h

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml