{"answers":{"affected":"3 open source packages ship an affected version, including org.keycloak:keycloak-services and keycloak. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-7504 in the wild and no public exploit code.","fix":"Upgrade org.keycloak:keycloak-services to 26.6.2 or later.","what":"CVE-2026-7504 is a high-severity vulnerability in Redhat Build of Keycloak, published on 19 May 2026. 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 CVE-2026-7504 and fix it if it is affected.\n\nWhat it is: CVE-2026-7504 is a high-severity vulnerability in Redhat Build of Keycloak, published on 19 May 2026. 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 CVE-2026-7504 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-services (Maven): affected all versions; fixed in 26.6.2\n- org.keycloak:keycloak-services (Maven): affected all versions; fixed in 26.6.2\n- keycloak (Bitnami): affected from 26.4.0; fixed in 26.4.12\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-7504/ (Markdown: https://insights.sbomify.com/CVE-2026-7504/index.md)","id":"CVE-2026-7504","markdown":"https://insights.sbomify.com/CVE-2026-7504/index.md","name":"CVE-2026-7504","record":{"aliases":["BIT-keycloak-2026-7504","ECHO-a405-9171-9ba2","GHSA-rp95-xpg9-c2cq","MINI-2688-w869-7qhj","MINI-469j-qc6f-4j26"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["security_bypass","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Keycloak identity server","requires_auth":"none","summary":"Attackers can bypass redirect validation in Keycloak clients using wildcard URIs to redirect users to malicious sites, potentially exposing sensitive information.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"build_of_keycloak","vendor":"redhat"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"A flaw was found in Keycloak's URL validation logic during redirect operations. By crafting a malicious request, an attacker could bypass validation to redirect users to unauthorized URLs, potentially leading to the exposure of sensitive information within the domain or facilitating further attacks. This vulnerability specifically affects Keycloak clients configured with a wildcard (*) in the \"Valid Redirect URIs\" field and requires user interaction to be successfully exploited.\n\nThe issue stems from a discrepancy in how Keycloak and the underlying Java URI implementation handle the user-info component of a URL. If a malicious redirect URL is constructed using multiple @ characters in the user-info section, Java's URI parser fails to extract the user-info, leaving only the raw authority field. Consequently, Keycloak's validation check fails to detect the malformed user-info, falls back to a wildcard comparison, and incorrectly permits the malicious redirect.","ecosystems":["Bitnami","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":"Org.keycloak/keycloak-services: open redirect when using wildcard valid redirect uris in keycloak","id":"CVE-2026-7504","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"redhat:build_of_keycloak","products":["redhat:build_of_keycloak"],"type":"open_redirect","year":"2026"},"n_packages":3,"n_references":6,"next":{"headline":"nextlevelbuilder GoClaw/GoClaw Lite RPC improper authorization","id":"CVE-2026-7505"},"packages":[{"ecosystem":"Bitnami","fixed":["26.4.12"],"introduced":["26.4.0"],"last_affected":[],"package":"keycloak","purl":"pkg:bitnami/keycloak","source":"BIT-keycloak-2026-7504"},{"ecosystem":"Maven","fixed":["26.6.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":null,"source":"GHSA-rp95-xpg9-c2cq"},{"ecosystem":"Maven","fixed":["26.6.2"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"GHSA-rp95-xpg9-c2cq"}],"prev":{"headline":"code-projects for Plugin cstecgi.cgi setWiFiMultipleConfig buffer overflow","id":"CVE-2026-7503"},"products":["Red Hat build of Keycloak 26.2","Red Hat build of Keycloak 26.2.16","Red Hat build of Keycloak 26.4","Red Hat build of Keycloak 26.4.12"],"published":"2026-05-19","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":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"total"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["Red Hat"]},"summary":"Attackers can bypass redirect validation in Keycloak clients using wildcard URIs to redirect users to malicious sites, potentially exposing sensitive information.","url":"https://insights.sbomify.com/CVE-2026-7504/"}