Read the docs
TI-2022-03783 Aliases CVE-2022-4137GHSA-9hhc-pj4w-w5rv

Keycloak: reflected xss attack

Priority LOW 38CWE-81Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.

Summary

A reflected cross-site scripting (XSS) vulnerability was found in the 'oob' OAuth endpoint due to incorrect null-byte handling. This issue allows a malicious link to insert an arbitrary URI into a Keycloak error page. This flaw requires a user or administrator to interact with a link in order to be vulnerable. This may compromise user details, allowing it to be changed or collected by an attacker.

Why it matters now

EPSS 0.01193 68th percentileScored 2026-11-07
Fix Fixed org.keycloak:keycloak-parent (Maven): 20.0.5Red Hat: 4 advisories

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
Red HatRed Hat Single Sign-On 7——Not affectedCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 7—18.0.6-1.redhat_00001.1.el7ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 8—18.0.6-1.redhat_00001.1.el8ssoPatch availableCNA
Red HatRed Hat Single Sign-On 7.6 for RHEL 9—18.0.6-1.redhat_00001.1.el9ssoPatch availableCNA
—org.keycloak:keycloak-parent (Maven)before 20.0.520.0.5Patch availableGHSA-9hhc-pj4w-w5rv
  • Red Hat Single Sign-On 7 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Single Sign-On 7.6 for RHEL 7 VendorRed Hat Affected — Fixed in 18.0.6-1.redhat_00001.1.el7sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 8 VendorRed Hat Affected — Fixed in 18.0.6-1.redhat_00001.1.el8sso Patch available CNA
  • Red Hat Single Sign-On 7.6 for RHEL 9 VendorRed Hat Affected — Fixed in 18.0.6-1.redhat_00001.1.el9sso Patch available CNA
  • org.keycloak:keycloak-parent (Maven) Vendor— Affected before 20.0.5 Fixed in 20.0.5 Patch available GHSA-9hhc-pj4w-w5rv

CPE configurations NVD · 5

CPEVersionsRoleVendor
cpe:2.3:a:redhat:keycloak:-:*:*:*:*:*:*:*not specified by NVDVulnerableRed Hat
cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:*7.6VulnerableRed Hat
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*7.0Running onRed Hat
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*8.0Running onRed Hat
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*9.0Running onRed Hat
  • cpe:2.3:a:redhat:keycloak:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Red Hat
  • cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Running on ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Running on ·Red Hat
  • cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Running on ·Red Hat

Remediation

  • Fix · GHSA-9hhc-pj4w-w5rv org.keycloak:keycloak-parent (Maven) Fixed in 20.0.5 Advisory →

Red Hat 4 advisories

  • RHSA-2023:1043 Released 2023-03-01 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.2 security update on RHEL 7
    • Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.6-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-18.0.6-1.redhat_00001.1.el7sso
  • RHSA-2023:1049 Released 2023-03-01 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.2 security update
    • Red Hat Single Sign-On 7
  • RHSA-2023:1045 Released 2023-03-01 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.2 security update on RHEL 9
    • Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.6-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server-18.0.6-1.redhat_00001.1.el9sso
Show 1 more Red Hat advisories
  • RHSA-2023:1044 Released 2023-03-01 · Red Hat rating Important
    Red Hat Single Sign-On 7.6.2 security update on RHEL 8
    • Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.6-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-18.0.6-1.redhat_00001.1.el8sso

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Advisory ·

    Red Hat Single Sign-On 7, Red Hat Single Sign-On 7.6 for RHEL 7 and 2 more products — RHSA-2023:1043

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2022-03591 Keycloak: session takeover with oidc offline refreshtokensPriority LOW 34
    • TI-2022-01319 Keycloak: xss on impersonation under specific circumstancesPriority LOW 29
  • Advisory ·

    Red Hat Single Sign-On 7, Red Hat Single Sign-On 7.6 for RHEL 7 and 2 more products — RHSA-2023:1044

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2022-03591 Keycloak: session takeover with oidc offline refreshtokensPriority LOW 34
    • TI-2022-01319 Keycloak: xss on impersonation under specific circumstancesPriority LOW 29
Show 2 more groups
  • Advisory ·

    Red Hat Single Sign-On 7, Red Hat Single Sign-On 7.6 for RHEL 7 and 2 more products — RHSA-2023:1045

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2022-03591 Keycloak: session takeover with oidc offline refreshtokensPriority LOW 34
    • TI-2022-01319 Keycloak: xss on impersonation under specific circumstancesPriority LOW 29
  • Advisory ·

    Red Hat Single Sign-On 7, Red Hat Single Sign-On 7.6 for RHEL 7 and 2 more products — RHSA-2023:1049

    3 records Highest priority Priority LOW 3 LOW

    Other records, highest priority first

    • TI-2022-03591 Keycloak: session takeover with oidc offline refreshtokensPriority LOW 34
    • TI-2022-01319 Keycloak: xss on impersonation under specific circumstancesPriority LOW 29

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Single Sign-On 7Fixed RHSA-2023:1049
Red Hat Single Sign-On 7.6 for RHEL 7 ServerFixed RHSA-2023:1043
Red Hat Single Sign-On 7.6 for RHEL 8Fixed RHSA-2023:1044
Red Hat Single Sign-On 7.6 for RHEL 9Fixed RHSA-2023:1045

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-4137
  2. 2026-10-03 Alias added: GHSA-9hhc-pj4w-w5rv

References

  • TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
  • TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
  • TI-2020-08665 Server-side request forgery in keycloak CVSS 3.1MEDIUM 5.3
  • TI-2022-03468 Path traversal in Red Hat Keycloak CVSS 3.1CRITICAL 9.1
  • TI-2021-03612 A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak. CVSS 3.1MEDIUM 6.1
  • TI-2022-03994 Cross-site scripting in keycloak CVSS 3.1CRITICAL 10.0
See all 97 →

Sources