
Grafana Shipped Three Unannounced CVE Fixes Today. Here's What the Code Shows
On November 24, 2026, between 17:47 and 17:58 UTC, Grafana Labs published five patch releases: 12.4.16, 13.0.14, 13.1.11, 13.2.7, and 13.3.2. The Security section of each set of release notes contains only CVE IDs: "Security: Fix CVE-2026-107561", "Fix CVE-2026-88943", and "Fix CVE-2026-88960". In the 13.0.14 notes each line appears three times.
At the time of writing, none of the three IDs has a published record at CVE.org (the CVE API returns CVE_RECORD_DNE). The IDs are also missing from Grafana's security advisories page and from the GitHub Advisory Database. A Hacker News submission about the releases had to link to the download page, because no other page explained them.
Grafana is open source under the AGPL, so the fixes are public even though the advisories are not. We compared each release tag against the previous patch on the same branch and read the code changes. There are three security fixes. The most serious lets anyone who can load the Grafana login page decrypt values that the instance encrypted.
Where the fixes are
Most of the commits between 13.3.1 and 13.3.2 are routine: Go 1.27.4, Alpine 3.24.4, Apache Thrift 0.25.0, OpenTelemetry 1.47.0, documentation, and an Azure Monitor query fix. None of them mentions security.
The security changes are inside the release commit itself: Release: 13.3.2 (#138809) and Release: 12.4.16 (#138811). These commits mostly bump version numbers in package.json files. They also change pkg/api/login.go and pkg/services/ngalert/notifier/receiver_testing_svc.go, and on the older branches they add pkg/registry/apis/dashboard/snapshot/access.go. Security fixes are prepared privately and merged at release time, so there is no public pull request to read.
1. The login page decrypted any value the instance had encrypted
When an OAuth login fails, Grafana redirects the user to /login and stores the error message in a short-lived cookie named login_error. Before this release, Grafana encrypted that message with its general-purpose secrets service. This is the same service that encrypts data source passwords, API tokens, and alerting contact point credentials.
The vulnerable version handled the cookie like this (from v13.3.1):
decoded, err := hex.DecodeString(cookie)
if err != nil {
return "", false
}
decryptedError, err := hs.SecretsService.Decrypt(ctx.Req.Context(), decoded)
return string(decryptedError), err == nil
LoginView then put the decrypted string into viewData.Settings.LoginError and rendered the login page. The login page requires no authentication, and the secrets service accepts any ciphertext the instance produced. A hex-encoded encrypted value sent in a login_error cookie therefore came back as plaintext in the page.
The patch describes the bug directly:
The general-purpose secrets service must not be used here: its Decrypt accepts any ciphertext the instance produced, which turns the endpoint into a decryption oracle.
To use the oracle, an attacker first needs some ciphertext. Possible sources include a database backup, a copied grafana.db file, read-only access to Grafana's SQL database, or a bug elsewhere that leaks rows. Encryption at rest exists to make that kind of leak survivable: someone with a copy of the database but without the keys should not get your data source passwords. This also applies to installations that keep their keys in an external KMS (key management service) to separate keys from data. Until today, network access to /login was enough to make that separation useless.
The problem is old. In Grafana 8.0.0 the same function called util.Decrypt(decoded, setting.SecretKey). That function used the same secret_key that encrypted data source credentials at the time. The function later moved to the secrets service, and the behaviour stayed the same.
The fix stops encrypting the error message. An OAuth error message is not secret, so it only needs integrity protection. The cookie now contains the plaintext message with an HMAC-SHA256 tag that binds it to the cookie name, and the length is limited to 1,024 bytes. The secrets service is no longer involved.
2. Testing a contact point could send its stored secrets elsewhere
In Grafana Alerting, you can send a test notification from an existing contact point. The test request does not have to include the stored credentials. You give the integration's UID and the names of the secret fields to reuse, and Grafana copies those values from the stored integration before it sends the test.
Grafana also has protected fields. Users without the "update protected" permission cannot change fields such as a webhook's destination URL, because changing the destination while the stored credentials stay attached is an obvious way to steal them. Before the fix, the test path had two gaps:
- Grafana checked protected fields against the schema version declared in the request, and it did not check that the version matched the stored integration. According to the patch comment, "Different versions might protect different fields."
- Grafana copied stored secrets by field name, so a request could reuse them under a different integration type.
With either gap, a user who could test a contact point, but not edit its protected fields, could have its stored secrets delivered somewhere else. The fix rejects a test that changes the version, and it rejects a test that changes the type while reusing stored secrets.
The patch also adds a third, smaller change. Notifiers sometimes echo credentials in their error messages, and the test result returns the error to the caller. Grafana now decrypts each secure setting and replaces any occurrence in the error with [REDACTED].
3. Snapshot deletion skipped the permission check (12.4 to 13.2)
The 12.4.16, 13.0.14, 13.1.11 and 13.2.7 patches add an authorizeSnapshotDelete function. Grafana now calls it before deleting a dashboard snapshot through the Kubernetes-style dashboard API, and before returning a snapshot's delete key.
The legacy rule allows deletion only by the snapshot's creator or by a user with write access to the source dashboard. The new API did not enforce that rule, so other users in the org could delete snapshots or read their delete keys. The 13.3 branch already contains access.go in 13.3.1, and the 13.3.2 notes list only CVE-2026-107561 and CVE-2026-88960. CVE-2026-88943 is therefore probably the snapshot bug. This is our inference: Grafana has not published a mapping from IDs to bugs, and from the code alone we cannot tell which of the other two IDs is the login oracle.
What to upgrade to
| You run | Upgrade to | Fixes |
|---|---|---|
| 13.3.x | 13.3.2 | Login oracle, contact point test (13.3.1 already had the snapshot fix) |
| 13.2.x | 13.2.7 | All three |
| 13.1.x | 13.1.11 | All three |
| 13.0.x | 13.0.14 | All three |
| 12.4.x | 12.4.16 | All three |
These are the only branches that received a release today. If you are on an older branch, the login oracle in particular dates back to at least 8.0, so plan a move to a supported line.
If a copy of your Grafana database has ever left your control, assume that anyone holding it could also reach your login page. Then rotate the credentials stored in your data sources and contact points. Cookies are not written to most access logs, so you are unlikely to find evidence of past use.
Unannounced patches in an open source project
Patching first and publishing the advisory a few days later is normal practice. It gives administrators a head start before the details become public. For an AGPL project, though, the details are public the moment the tags are pushed. The vulnerable function and its fix sit in the same commit, and the patch comment says "decryption oracle". Attackers can read that diff as easily as we did.
The people who lose out are defenders. They sort their patching by severity scores, and today those IDs have no score and no description. If you run self-hosted Grafana, upgrade now and don't wait for the CVSS score.