CVE-2020-1697: XSS

Published Jan 16, 2020
·
Updated

A flaw was found during the assessment of the Admin Console application for Keycloak, where it was found that Application Links to external applications are not validated properly. An attacker could use this flaw to cause Stored XSS attacks.

Other sources

During the assessment of the Admin Console application, it was found that links to external applications, so called Application Links, does not get validated properly and therefore are prone to Stored XSS attacks. The affected parameter BaseURL within the Clients settings page from the admin console application accepts any characters and therefore it is possible to insert URLs with the javascript

https://issues.redhat.com/browse/KEYCLOAK-12459

Red Hat

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.

Affected Software

3 affected componentsFixes available
redhat/keycloak<9.0.0
9.0.0
redhat keycloak<9.0.0
redhat Single Sign-on=7.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/keycloak to a version that resolves this vulnerability.

    Fixed in 9.0.0
  2. Upgrade

    Upgrade keycloak to a version that resolves this vulnerability.

    Fixed in 9.0.0
  3. Configuration

    Ensure the BaseURL field used for Application Links is validated and sanitized so injected JavaScript cannot be stored and later rendered as Stored XSS.

    Keycloak Admin Console (Clients settings page) BaseURL = validated/escaped to prevent insertion of JavaScript (e.g., do not allow javascript: URLs or special characters that lead to script injection)

Event History

Feb 5, 2020
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 10, 2020
CVE Published
via MITRE·02:13 PM
Data Sourced
via MITRE·02:13 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2020-1697?

CVE-2020-1697 is a vulnerability found in all versions of Keycloak before 9.0.0 that allows for Stored XSS attacks through improperly validated links to external applications in the admin console.

2

What is the severity of CVE-2020-1697?

The severity of CVE-2020-1697 is medium, with a CVSSv3 base score of 6.1.

3

Which software versions are affected by CVE-2020-1697?

All versions of Keycloak before 9.0.0 are affected by CVE-2020-1697.

4

How can an attacker exploit CVE-2020-1697?

An authenticated malicious user can create URLs to trick users in other realms and potentially conduct further attacks by exploiting CVE-2020-1697.

5

What is the recommended solution for CVE-2020-1697?

The recommended solution is to update Keycloak to version 9.0.0 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203