{"answers":{"affected":"2 open source packages ship an affected version, including org.keycloak:keycloak-services. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-37980 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-37980 is a medium-severity cross-site scripting vulnerability in Redhat Build of Keycloak, published on 14 Apr 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-37980 and fix it if it is affected.\n\nWhat it is: CVE-2026-37980 is a medium-severity cross-site scripting vulnerability in Redhat Build of Keycloak, published on 14 Apr 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-37980 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-services (Maven): affected all versions up to 26.5.5; no fix listed\n- org.keycloak:keycloak-services (Maven): affected all versions up to 26.5.5; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-37980/ (Markdown: https://insights.sbomify.com/CVE-2026-37980/index.md)","id":"CVE-2026-37980","markdown":"https://insights.sbomify.com/CVE-2026-37980/index.md","name":"CVE-2026-37980","record":{"aliases":["GHSA-m32f-8vh9-2hh3","MINI-fmmx-w8vq-95cm","MINI-pq7g-jxv4-r2cf"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Keycloak identity server","requires_auth":"high_privilege","summary":"An attacker with admin privileges can inject malicious scripts into the login page, leading to arbitrary code execution and session theft for users.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"build_of_keycloak","vendor":"redhat"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A flaw was found in Keycloak, specifically in the organization selection login page. A remote attacker with `manage-realm` or `manage-organizations` administrative privileges can exploit a Stored Cross-Site Scripting (XSS) vulnerability. This flaw occurs because the `organization.alias` is placed into an inline JavaScript `onclick` handler, allowing a crafted JavaScript payload to execute in a user's browser when they view the login page. Successful exploitation enables arbitrary JavaScript execution, potentially leading to session theft, unauthorized account actions, or further attacks against users of the affected realm.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Keycloak: Arbitrary code execution via Stored Cross-Site Scripting (XSS) in organization selection login page","id":"CVE-2026-37980","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"redhat:build_of_keycloak","products":["redhat:build_of_keycloak"],"type":"xss","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Keycloak Account Resources user lookup contains broken access control","id":"CVE-2026-37981"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["26.5.5"],"package":"org.keycloak:keycloak-services","purl":null,"source":"GHSA-m32f-8vh9-2hh3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["26.5.5"],"package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"GHSA-m32f-8vh9-2hh3"}],"prev":{"headline":"Keycloak: keycloak: information disclosure via oidc token introspection endpoint audience bypass","id":"CVE-2026-37979"},"products":["Red Hat Build of Keycloak","Red Hat build of Keycloak 26.4.12"],"published":"2026-04-14","related":[{"cvss_score":8.8,"headline":"Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation","id":"CVE-2026-15572","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":8.8,"headline":"Keycloak SAML Broken has Authentication Bypass by Primary Weakness","id":"CVE-2026-3047","kev_date_added":null,"published":"2026-03-05"},{"cvss_score":8.1,"headline":"Keycloak-services: keycloak-services: authorization bypass via unnormalized uri matching in pathmatcher","id":"CVE-2026-15573","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":8.1,"headline":"Keycloak-services: keycloak-services: default dcr policy allows role forgery via user property mappers","id":"CVE-2026-16102","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":8.1,"headline":"Org.keycloak/keycloak-quarkus-server: keycloak: unauthorized access via jwt authorization grant with disabled users","id":"CVE-2026-1609","kev_date_added":null,"published":"2026-07-16"},{"cvss_score":8.1,"headline":"Org.keycloak:keycloak-services: keycloak: authentication bypass via jwt algorithm confusion","id":"CVE-2026-11800","kev_date_added":null,"published":"2026-06-25"},{"cvss_score":8.1,"headline":"Keycloak-policy-enforcer: keycloak policy enforcer: authorization bypass via incorrect uri comparison","id":"CVE-2026-9800","kev_date_added":null,"published":"2026-06-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-22","vendors":["Red Hat"]},"summary":"An attacker with admin privileges can inject malicious scripts into the login page, leading to arbitrary code execution and session theft for users.","url":"https://insights.sbomify.com/CVE-2026-37980/"}