{"answers":{"affected":"2 open source packages ship an affected version, including org.keycloak:keycloak-parent.","exploited":"There is no known exploitation of GHSA-m98g-63qj-fp8j in the wild and no public exploit code.","fix":"Upgrade org.keycloak:keycloak-parent to 18.0.0 or later.","what":"GHSA-m98g-63qj-fp8j is a cross-site scripting vulnerability in org.keycloak:keycloak-parent, published on 28 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-m98g-63qj-fp8j and fix it if it is affected.\n\nWhat it is: GHSA-m98g-63qj-fp8j is a cross-site scripting vulnerability in org.keycloak:keycloak-parent, published on 28 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-m98g-63qj-fp8j in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-parent (Maven): affected from 10.0.0; fixed in 18.0.0\n- org.keycloak:keycloak-parent (Maven): affected from 10.0.0; fixed in 18.0.0\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/GHSA-m98g-63qj-fp8j/ (Markdown: https://insights.sbomify.com/GHSA-m98g-63qj-fp8j/index.md)","id":"GHSA-m98g-63qj-fp8j","markdown":"https://insights.sbomify.com/GHSA-m98g-63qj-fp8j/index.md","name":"GHSA-m98g-63qj-fp8j","record":{"aliases":[],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Keycloak identity server","requires_auth":"none","summary":"Attackers can execute malicious scripts in user browsers via unescaped error messages in the client registration endpoint.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak. When a malicious request is sent to the client registration endpoint, the error message is not properly escaped, allowing an attacker to execute malicious scripts into the user's browser.\n\n### Acknowledgement\n\nKeycloak would like to thank Quentin TEXIER (Pentester at Opencyber) for reporting this issue.","ecosystems":["Maven"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Reflected XSS on clients-registrations endpoint","id":"GHSA-m98g-63qj-fp8j","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2022"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Maven","fixed":["18.0.0"],"introduced":["10.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-parent","purl":null,"source":"GHSA-m98g-63qj-fp8j"},{"ecosystem":"Maven","fixed":["18.0.0"],"introduced":["10.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-parent","purl":"pkg:maven/org.keycloak/keycloak-parent","source":"GHSA-m98g-63qj-fp8j"}],"products":null,"published":"2022-04-28","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can execute malicious scripts in user browsers via unescaped error messages in the client registration endpoint.","url":"https://insights.sbomify.com/GHSA-m98g-63qj-fp8j/"}