# CVE-2026-12704: SAML assertion replay via skipped InResponseTo validation

> Attackers can replay SAML assertions to hijack user sessions in Grafana Enterprise when IdP-initiated login is enabled.

- **Severity:** Medium 6.8 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 2 Sep 2026
- **Updated:** 3 Sep 2026
- **Also known as:** BIT-grafana-2026-12704, GHSA-xgrw-968j-pp62, MINI-437c-845x-v4qr, MINI-4qgv-j3hj-w3qg, MINI-4wgr-8rxq-5r74, MINI-4whm-7v7h-x5mf, MINI-54g8-rcqp-mjwg, MINI-64jw-2w7f-hqpq, MINI-6vp7-8vx4-ggfp, MINI-7vvc-f9g5-7jpj, MINI-g4gf-pgjw-w932, MINI-gph7-w6hx-qf79, MINI-hphj-8j7c-x93w, MINI-hw8h-p3pr-8fpw, MINI-jmmp-49xg-4wpp, MINI-m5gm-jpjm-fjc9, MINI-p5f9-qwjm-xh84, MINI-q69f-hq7v-gvc2, MINI-r784-5qwh-pg63, MINI-r8h6-r2pv-p9g6, MINI-r8v9-957r-6cqh, MINI-vh7m-rjgg-rm7q, MINI-x33f-jwpp-9m7r, MINI-xjq7-r48j-5xh8

## What is CVE-2026-12704?

CVE-2026-12704 is a medium-severity authentication bypass vulnerability in Grafana Enterprise, published on 2 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

When SAML IdP-initiated login is enabled in Grafana Enterprise, the SAML library skips validation of the InResponseTo field on all SAML responses, including SP-initiated logins. This removes anti-replay protection, allowing an attacker who obtains a valid signed SAML assertion to replay it and gain a session as the victim user. Only instances with the allow_idp_initiated SAML setting enabled are affected; this setting is off by default and Grafana OSS is not affected.

Weakness: CWE-294 (Authentication Bypass by Capture-replay)

## Which versions are affected by CVE-2026-12704?

1 open source package ship an affected version, including grafana.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `grafana` | Bitnami | From 11.6.0 | 12.4.11, 13.0.8, 13.1.5, 13.2.1 |

## How do I fix CVE-2026-12704?

Upgrade grafana to a fixed version for your release line: 12.4.11, 13.0.8, 13.1.5 or 13.2.1.

## Is CVE-2026-12704 being exploited?

There is no known exploitation of CVE-2026-12704 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-12704 and fix it if it is affected.

What it is: CVE-2026-12704 is a medium-severity authentication bypass vulnerability in Grafana Enterprise, published on 2 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-12704 in the wild and no public exploit code.

Affected packages and fixed versions:
- grafana (Bitnami): affected from 11.6.0; fixed in 12.4.11, 13.0.8, 13.1.5, 13.2.1

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-12704/ (Markdown: https://insights.sbomify.com/CVE-2026-12704/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-12704
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-12704
- OSV: https://osv.dev/vulnerability/CVE-2026-12704

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-12704/
Summaries are generated and may contain mistakes; the official description above is the record.
