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.
Published: 2026-09-02
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

When Grafana Enterprise allows IdP-initiated login, the SAML library skips validating the InResponseTo field on all SAML responses, removing anti‑replay protection; an attacker who obtains a valid signed SAML assertion can replay it to log in as the victim, achieving unauthorized session hijacking without additional credentials

Affected Systems

This flaw affects Grafana Enterprise installations that have the allow_idp_initiated setting enabled. Grafana OSS and instances with the setting disabled are not impacted

Risk and Exploitability

The vulnerability carries a CVSS score of 6.8, indicating moderate severity. EPSS data is unavailable and the issue is not listed in the CISA KEV catalog. The attack requires the attacker to acquire a valid signed assertion, which can be achieved through phishing or token leakage; the replay can then occur over the SAML service provider channel, giving the attacker a full authenticated session on the target instance. Because the setting is off by default, the risk is limited to environments that have deliberately enabled IdP‑initiated login.

Generated by OpenCVE AI on September 3, 2026 at 09:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Disable the allow_idp_initiated configuration option to enforce InResponseTo checks
  • Apply any Grafana Enterprise patch or upgrade that restores validation of the InResponseTo field in SAML responses
  • Enable detailed SAML logging and monitor for repeated assertion IDs or multiple logins from the same assertion to detect replay attempts

Generated by OpenCVE AI on September 3, 2026 at 09:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 04 Sep 2026 12:15:00 +0000


Thu, 03 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Grafana
Grafana grafana Enterprise
Vendors & Products Grafana
Grafana grafana Enterprise

Thu, 03 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
Title CVE-2026-12704 CVE Record SAML assertion replay via skipped InResponseTo validation

Wed, 02 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 02 Sep 2026 11:00:00 +0000

Type Values Removed Values Added
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.
Title CVE-2026-12704 CVE Record
Weaknesses CWE-294
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N'}


Subscriptions

Grafana Grafana Enterprise
cve-icon MITRE

Status: PUBLISHED

Assigner: GRAFANA

Published:

Updated: 2026-09-03T08:07:34.086Z

Reserved: 2026-06-19T10:24:45.152Z

Link: CVE-2026-12704

cve-icon Vulnrichment

Updated: 2026-09-02T18:12:46.607Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-02T16:17:14.383

Modified: 2026-09-03T16:37:52.170

Link: CVE-2026-12704

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-02T00:00:00Z

Links: CVE-2026-12704 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T10:15:04Z

Weaknesses
  • CWE-294

    Authentication Bypass by Capture-replay