{
  "threat_severity" : "Moderate",
  "public_date" : "2017-10-17T00:00:00Z",
  "bugzilla" : {
    "description" : "keycloak: reflected XSS using HOST header",
    "id" : "1489161",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1489161"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.4",
    "cvss3_scoring_vector" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
    "status" : "verified"
  },
  "cwe" : "CWE-444",
  "details" : [ "It was found that Keycloak would accept a HOST header URL in the admin console and use it to determine web resource locations. An attacker could use this flaw against an authenticated user to attain reflected XSS via a malicious server.", "It was found that keycloak would accept a HOST header URL in the admin console and use it to determine web resource locations. An attacker could use this flaw against an authenticated user to attain reflected XSS via a malicious server." ],
  "acknowledgement" : "Red Hat would like to thank Mykhailo Stadnyk (Playtech) for reporting this issue.",
  "affected_release" : [ {
    "product_name" : "Red Hat Single Sign-On 7.1",
    "release_date" : "2017-10-17T00:00:00Z",
    "advisory" : "RHSA-2017:2906",
    "cpe" : "cpe:/a:redhat:jboss_single_sign_on:7.1"
  }, {
    "product_name" : "Red Hat Single Sign-On 7.1 for RHEL 6",
    "release_date" : "2017-10-17T00:00:00Z",
    "advisory" : "RHSA-2017:2904",
    "cpe" : "cpe:/a:redhat:red_hat_single_sign_on:7::el6",
    "package" : "rh-sso7-keycloak-0:2.5.14-1.Final_redhat_1.1.jbcs.el6"
  }, {
    "product_name" : "Red Hat Single Sign-On 7.1 for RHEL 7",
    "release_date" : "2017-10-17T00:00:00Z",
    "advisory" : "RHSA-2017:2905",
    "cpe" : "cpe:/a:redhat:red_hat_single_sign_on:7::el7",
    "package" : "rh-sso7-keycloak-0:2.5.14-1.Final_redhat_1.1.jbcs.el7"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Mobile Application Platform 4",
    "fix_state" : "Will not fix",
    "package_name" : "keycloak",
    "cpe" : "cpe:/a:redhat:mobile_application_platform:4"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2017-12158\nhttps://nvd.nist.gov/vuln/detail/CVE-2017-12158" ],
  "name" : "CVE-2017-12158",
  "csaw" : false
}