# SimpleSAMLphp SP accepts a response from an unexpected IdP when unsigned `Response/InResponseTo` is combined with a signed assertion lacking `SubjectConfirmationData/InResponseTo`

High severity, published 2026-07-02. Update simplesamlphp/simplesamlphp to the fixed version of your branch (2.5.2, 2.4.7): composer update simplesamlphp/simplesamlphp.

Canonical URL: https://buzzphp.com/security/ghsa-q8r6-xj3f-wrrm · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.1) |
| Published | 2026-07-02 |
| Updated | 2026-07-02 |
| CVE | [CVE-2026-49284](https://nvd.nist.gov/vuln/detail/CVE-2026-49284) |
| GHSA | [GHSA-q8r6-xj3f-wrrm](https://github.com/advisories/GHSA-q8r6-xj3f-wrrm) |
| Weakness | CWE-345 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| simplesamlphp/simplesamlphp | >= 2.5.0, <= 2.5.1 or <= 2.4.6 | 2.5.2, 2.4.7 |

## What to do

Update simplesamlphp/simplesamlphp to the fixed version of your branch (2.5.2, 2.4.7): composer update simplesamlphp/simplesamlphp.

Check which version you run with `composer show simplesamlphp/simplesamlphp`, and every affected package with `composer audit`.

## About this advisory

Summary

SimpleSAMLphp's SAML SP ACS path does not enforce the IdP selected for an SP-initiated login. If a saved SP state contains ExpectedIssuer = IdP A, but the ACS receives a valid response from IdP B, the code logs a warning and continues processing instead of rejecting the response.

That behavior becomes security-relevant when combined with the response-processing rule that accepts an unsigned samlp:Response/@InResponseTo outside the signed assertion whenever the signed assertion's SubjectConfirmationData does not carry its own InResponseTo. A response issued by one trusted IdP can therefore be bound to SP state created for another IdP.

Impact



## Links

- [GHSA-q8r6-xj3f-wrrm on GitHub](https://github.com/advisories/GHSA-q8r6-xj3f-wrrm)
- [CVE-2026-49284 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-49284)
- [All Composer security advisories](https://buzzphp.com/security)
