CVE-2020-10748 Cross-site Scripting in Keycloak

Medium 6.1 Published Updated

An XSS vulnerability in Keycloak's data filter allows attackers to execute scripts or conduct further attacks via data URLs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-10748?

CVE-2020-10748 is a medium-severity cross-site scripting vulnerability in Redhat Keycloak, published on 16 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A flaw was found in Keycloak's data filter, in version 10.0.1, where it allowed the processing of data URLs in some circumstances. This flaw allows an attacker to conduct cross-site scripting or further attacks.

Weakness: CWE-79

Which versions are affected by CVE-2020-10748?

2 open source packages ship an affected version, including org.keycloak:keycloak-parent. It affects 2 products.

PackageAffectedFixed in
org.keycloak:keycloak-parent MavenAll versions10.0.2
org.keycloak:keycloak-parent MavenAll versions10.0.2

Products include Redhat Keycloak, Redhat Single Sign-On.

How do I fix CVE-2020-10748?

Upgrade org.keycloak:keycloak-parent to 10.0.2 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2020-10748 being exploited?

There is no known exploitation of CVE-2020-10748 in the wild and no public exploit code.

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-hgpg-593r-hhvp.

Is CVE-2020-10748 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free