Description
Insufficient Verification of Data Authenticity vulnerability in dropbox samly allows an attacker to establish an authenticated session using a SAML response the service provider never requested.

Samly.SPHandler.validate_authresp/3 in lib/samly/sp_handler.ex validates a SAML response for the SP-initiated flow by comparing only the RelayState value, the IdP identifier, and the presence of a target URL held in the session. It never compares SubjectConfirmationData/@InResponseTo against the ID of the AuthnRequest the service provider issued, and that request ID is never persisted, so no comparison is possible. SAML 2.0 Core section 4.1.4.3 requires a service provider to reject a response whose InResponseTo does not match a request it made. The underlying esaml library checks status, signature, recipient, audience, and staleness, but likewise never inspects InResponseTo, so nothing else closes the gap. Exploitation requires a validly signed assertion from the trusted IdP, which an attacker can obtain for their own account, and a RelayState matching the victim's session; the assertion signature itself remains intact, so this is not a signature-forgery issue.

This issue affects samly: from 0.3.0 onward.
Published: 2026-08-20
Score: 7.6 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability originates from a missing validation of the InResponseTo attribute in SAML responses. Because the Service Provider does not compare this attribute with the identifier of the AuthnRequest it issued, an attacker can send an unsolicited SAML response and have the system accept it as valid. This enables an attacker to establish an authenticated session for themselves without a legitimate authentication request, effectively bypassing the intended authentication flow. The flaw is a classic example of CWE‑345 “Missing Message Authentication.”

Affected Systems

The issue affects the Dropbox Samly and Handnot2 Samly libraries, both beginning with version 0.3.0 onward. Users running any release in this series are potentially vulnerable if they rely on the SP‑initiated authentication flow without additional safeguards.

Risk and Exploitability

The CVSS score of 7.6 labels this a high‑severity vulnerability, and although the EPSS score is not available, the lack of a KEV listing suggests no widespread exploitation has been documented yet. Nevertheless, an attacker only needs a validly signed assertion from their own account and a RelayState that matches a victim's active session to exploit the flaw, which is a realistic threat in environments where SAML assertions are not tightly bound to requests.

Generated by OpenCVE AI on August 20, 2026 at 20:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Samly library to the latest version that implements InResponseTo validation for the SP‑initiated flow.
  • If an immediate patch is not available, disable or tightly restrict the SP‑initiated authentication endpoint so that unsolicited SAML responses cannot be accepted; configure the application to only process responses tied to active AuthnRequest sessions.
  • Add application‑level logging or alerting for unsolicited SAML responses to detect potential abuse and enforce monitoring.

Generated by OpenCVE AI on August 20, 2026 at 20:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
Description Insufficient Verification of Data Authenticity vulnerability in dropbox samly allows an attacker to establish an authenticated session using a SAML response the service provider never requested. Samly.SPHandler.validate_authresp/3 in lib/samly/sp_handler.ex validates a SAML response for the SP-initiated flow by comparing only the RelayState value, the IdP identifier, and the presence of a target URL held in the session. It never compares SubjectConfirmationData/@InResponseTo against the ID of the AuthnRequest the service provider issued, and that request ID is never persisted, so no comparison is possible. SAML 2.0 Core section 4.1.4.3 requires a service provider to reject a response whose InResponseTo does not match a request it made. The underlying esaml library checks status, signature, recipient, audience, and staleness, but likewise never inspects InResponseTo, so nothing else closes the gap. Exploitation requires a validly signed assertion from the trusted IdP, which an attacker can obtain for their own account, and a RelayState matching the victim's session; the assertion signature itself remains intact, so this is not a signature-forgery issue. This issue affects samly: from v0.3.0 onward. Insufficient Verification of Data Authenticity vulnerability in dropbox samly allows an attacker to establish an authenticated session using a SAML response the service provider never requested. Samly.SPHandler.validate_authresp/3 in lib/samly/sp_handler.ex validates a SAML response for the SP-initiated flow by comparing only the RelayState value, the IdP identifier, and the presence of a target URL held in the session. It never compares SubjectConfirmationData/@InResponseTo against the ID of the AuthnRequest the service provider issued, and that request ID is never persisted, so no comparison is possible. SAML 2.0 Core section 4.1.4.3 requires a service provider to reject a response whose InResponseTo does not match a request it made. The underlying esaml library checks status, signature, recipient, audience, and staleness, but likewise never inspects InResponseTo, so nothing else closes the gap. Exploitation requires a validly signed assertion from the trusted IdP, which an attacker can obtain for their own account, and a RelayState matching the victim's session; the assertion signature itself remains intact, so this is not a signature-forgery issue. This issue affects samly: from 0.3.0 onward.

Thu, 20 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Description Insufficient Verification of Data Authenticity vulnerability in dropbox samly allows an attacker to establish an authenticated session using a SAML response the service provider never requested. Samly.SPHandler.validate_authresp/3 in lib/samly/sp_handler.ex validates a SAML response for the SP-initiated flow by comparing only the RelayState value, the IdP identifier, and the presence of a target URL held in the session. It never compares SubjectConfirmationData/@InResponseTo against the ID of the AuthnRequest the service provider issued, and that request ID is never persisted, so no comparison is possible. SAML 2.0 Core section 4.1.4.3 requires a service provider to reject a response whose InResponseTo does not match a request it made. The underlying esaml library checks status, signature, recipient, audience, and staleness, but likewise never inspects InResponseTo, so nothing else closes the gap. Exploitation requires a validly signed assertion from the trusted IdP, which an attacker can obtain for their own account, and a RelayState matching the victim's session; the assertion signature itself remains intact, so this is not a signature-forgery issue. This issue affects samly: from v0.3.0 onward.
Title Missing InResponseTo validation in Samly allows acceptance of unsolicited SAML responses
First Time appeared Dropbox
Dropbox samly
Handnot2
Handnot2 samly
Weaknesses CWE-345
CPEs cpe:2.3:a:dropbox:samly:*:*:*:*:*:*:*:*
cpe:2.3:a:handnot2:samly:*:*:*:*:*:*:*:*
Vendors & Products Dropbox
Dropbox samly
Handnot2
Handnot2 samly
References
Metrics cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-08-20T18:38:13.727Z

Reserved: 2026-06-09T11:01:47.529Z

Link: CVE-2026-53425

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T18:16:27.850

Modified: 2026-08-20T19:16:54.197

Link: CVE-2026-53425

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T20:30:05Z

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity