7.6high
Missing InResponseTo validation in Samly allows acceptance of unsolicited SAML responses
- Severity
- 7.6high CVSS:4.0 by EEF
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- EEF
- Also known as
- EEF-CVE-2026-53425
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| samly | from 0.3.0 before * | CVE List |
| dropbox/samly | from 8a5bb1b4a4753d05470da2036323477f63cfdf4c before * | CVE List |
| handnot2/samly | from 8a5bb1b4a4753d05470da2036323477f63cfdf4c before * | CVE List |
| samly (Hex) | from 0.3.0 | Erlang Ecosystem Foundation |
| https://github.com/dropbox/samly | from 8a5bb1b4a4753d05470da2036323477f63cfdf4c | Erlang Ecosystem Foundation |
| https://github.com/handnot2/samly | from 8a5bb1b4a4753d05470da2036323477f63cfdf4c | Erlang Ecosystem Foundation |
All scores
| EEF | 7.6high CVSS:4.0 | 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 |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
Erlang Ecosystem Foundation
Summary
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.
NVD (es)
Vulnerabilidad de verificación insuficiente de la autenticidad de los datos en samly de dropbox permite a un atacante establecer una sesión autenticada utilizando una respuesta SAML que el proveedor de servicios nunca solicitó. Samly.SPHandler.validate_authresp/3 en lib/samly/sp_handler.ex valida una respuesta SAML para el flujo iniciado por el SP comparando solo el valor de RelayState, el identificador del IdP y la presencia de una URL de destino mantenida en la sesión. Nunca compara SubjectConfirmationData/@InResponseTo con el ID de la AuthnRequest que el proveedor de servicios emitió, y ese ID de solicitud nunca se persiste, por lo que no es posible ninguna comparación. La sección 4.1.4.3 del núcleo de SAML 2.0 requiere que un proveedor de servicios rechace una respuesta cuyo InResponseTo no coincida con una solicitud que realizó. La biblioteca esaml subyacente verifica el estado, la firma, el destinatario, la audiencia y la caducidad, pero de manera similar nunca inspecciona InResponseTo, por lo que nada más cierra la brecha. La explotación requiere una aserción válidamente firmada del IdP de confianza, que un atacante puede obtener para su propia cuenta, y un RelayState que coincida con la sesión de la víctima; la firma de la aserción en sí permanece intacta, por lo que esto no es un problema de falsificación de firma. Este problema afecta a samly: a partir de la versión 0.3.0.
References
| https://cna.erlef.org/cves/CVE-2026-53425.html | related, third-party-advisory, web | |
| https://osv.dev/vulnerability/EEF-CVE-2026-53425 | related | |
| https://github.com/dropbox/samly/commit/8a5bb1b4a4753d05470da2036323477f63cfdf4c | related, web | |
| https://github.com/handnot2/samly/commit/8a5bb1b4a4753d05470da2036323477f63cfdf4c | related, web | |
| https://hex.pm/packages/samly | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-53425 changed 2026-11-20 | CVE Terms of Use |
| Erlang Ecosystem Foundation | EEF-CVE-2026-53425 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2026-53425 changed 2026-11-19 | Public domain |