{"answers":{"affected":"2 open source packages ship an affected version, including org.keycloak:keycloak-parent. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-2256 in the wild and no public exploit code.","fix":"Upgrade org.keycloak:keycloak-parent to 19.0.2 or later.","what":"CVE-2022-2256 is a low-severity cross-site scripting vulnerability in Redhat Single Sign-On, published on 1 Sep 2022. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-2256 and fix it if it is affected.\n\nWhat it is: CVE-2022-2256 is a low-severity cross-site scripting vulnerability in Redhat Single Sign-On, published on 1 Sep 2022. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-2256 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-parent (Maven): affected all versions; fixed in 19.0.2\n- org.keycloak:keycloak-parent (Maven): affected all versions; fixed in 19.0.2\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-2022-2256/ (Markdown: https://insights.sbomify.com/CVE-2022-2256/index.md)","id":"CVE-2022-2256","markdown":"https://insights.sbomify.com/CVE-2022-2256/index.md","name":"CVE-2022-2256","record":{"aliases":["GHSA-w9mf-83w3-fv49"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Keycloak SSO","requires_auth":"high_privilege","summary":"A privileged attacker can execute malicious scripts in the Keycloak admin console via stored XSS in default roles, potentially compromising administrative accounts.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"single_sign-on","vendor":"redhat"}],"cvss":{"score":3.8,"severity":"low","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A Stored Cross-site scripting (XSS) vulnerability was found in keycloak as shipped in Red Hat Single Sign-On 7. This flaw allows a privileged attacker to execute malicious scripts in the admin console, abusing the default roles functionality.","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 vulnerable to Stored Cross site Scripting (XSS) when loading default roles","id":"CVE-2022-2256","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"redhat:single_sign-on","products":["redhat:single_sign-on"],"type":"xss","year":"2022"},"n_packages":2,"n_references":2,"next":{"headline":"Out-of-bounds Read in vim/vim","id":"CVE-2022-2257"},"packages":[{"ecosystem":"Maven","fixed":["19.0.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-parent","purl":null,"source":"GHSA-w9mf-83w3-fv49"},{"ecosystem":"Maven","fixed":["19.0.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-parent","purl":"pkg:maven/org.keycloak/keycloak-parent","source":"GHSA-w9mf-83w3-fv49"}],"prev":{"headline":"Incorrect header handling in mod-wsgi","id":"CVE-2022-2255"},"products":["keycloak"],"published":"2022-09-01","related":[{"cvss_score":7.8,"headline":"Privilege escalation in containers/redhat-sso-7","id":"CVE-2020-10695","kev_date_added":null,"published":"2021-05-26"},{"cvss_score":5.3,"headline":"Keycloak is vulnerable to IDN homograph attack","id":"CVE-2021-3424","kev_date_added":null,"published":"2021-06-01"},{"cvss_score":2.7,"headline":"Server-side request forgery in Red Hat Single Sign-On","id":"CVE-2020-14341","kev_date_added":null,"published":"2021-01-12"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"A privileged attacker can execute malicious scripts in the Keycloak admin console via stored XSS in default roles, potentially compromising administrative accounts.","url":"https://insights.sbomify.com/CVE-2022-2256/"}