CVE-2020-1697 XSS in Keycloak

Medium 6.1 Published Updated

Authenticated malicious users can inject stored XSS via application links in the admin console, potentially compromising other users' sessions.

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-1697?

CVE-2020-1697 is a medium-severity cross-site scripting vulnerability in Redhat Keycloak, published on 10 Feb 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

It was found in all keycloak versions before 9.0.0 that links to external applications (Application Links) in the admin console are not validated properly and could allow Stored XSS attacks. An authed malicious user could create URLs to trick users in other realms, and possibly conduct further attacks.

Weakness: CWE-79

Which versions are affected by CVE-2020-1697?

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

PackageAffectedFixed in
org.keycloak:keycloak-core MavenAll versions9.0.0
org.keycloak:keycloak-core MavenAll versions9.0.0

Products include Redhat Keycloak, Redhat Single Sign-On.

How do I fix CVE-2020-1697?

Upgrade org.keycloak:keycloak-core to 9.0.0 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-1697 being exploited?

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

All Redhat Keycloak vulnerabilities

Sources

Also known as GHSA-8vf3-4w62-m3pq.

Is CVE-2020-1697 in your software?

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

Check your SBOMs for free