{"answers":{"affected":"2 open source packages ship an affected version, including org.keycloak:keycloak-core.","exploited":"There is no known exploitation of CVE-2024-4028 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-4028 is a low-severity cross-site scripting vulnerability in Red Hat Build of Keycloak, published on 18 Feb 2025. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-4028 and fix it if it is affected.\n\nWhat it is: CVE-2024-4028 is a low-severity cross-site scripting vulnerability in Red Hat Build of Keycloak, published on 18 Feb 2025. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-4028 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-core (Maven): affected all versions up to 26.1.2; no fix listed\n- org.keycloak:keycloak-core (Maven): affected all versions up to 26.1.2; 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-2024-4028/ (Markdown: https://insights.sbomify.com/CVE-2024-4028/index.md)","id":"CVE-2024-4028","markdown":"https://insights.sbomify.com/CVE-2024-4028/index.md","name":"CVE-2024-4028","record":{"aliases":["ECHO-c42f-8476-7532","GHSA-q4xq-445g-g6ch"],"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":"A privileged attacker can inject malicious scripts via admin console items, leading to stored XSS and potential session hijacking.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":3.8,"severity":"low","source":"cna","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-20","name":"Improper Input Validation"}],"description":"A vulnerability was found in Keycloak. This issue may allow a privileged attacker to use a malicious payload as the permission while creating items (Resource and Permissions) from the admin console, leading to a stored cross-site scripting (XSS) attack.","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-core: stored xss in keycloak when creating a items in admin console","id":"CVE-2024-4028","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Wildfly: no timeout for eap management interface may lead to denial of service (dos)","id":"CVE-2024-4029"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["26.1.2"],"package":"org.keycloak:keycloak-core","purl":null,"source":"GHSA-q4xq-445g-g6ch"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["26.1.2"],"package":"org.keycloak:keycloak-core","purl":"pkg:maven/org.keycloak/keycloak-core","source":"GHSA-q4xq-445g-g6ch"}],"prev":{"headline":"Undertow: outofmemoryerror in httpservletrequestimpl.getparameternames() can cause remote dos attacks","id":"CVE-2024-4027"},"products":["Red Hat Build of Keycloak","Red Hat Single Sign-On 7"],"published":"2025-02-18","related":[],"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":"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":"2025-11-21","vendors":["Red Hat"]},"summary":"A privileged attacker can inject malicious scripts via admin console items, leading to stored XSS and potential session hijacking.","url":"https://insights.sbomify.com/CVE-2024-4028/"}