# SimpleSAMLphp has Possible DoS via XPath Transform

High severity, published 2026-07-02. Update simplesamlphp/saml2 to the fixed version of your branch (4.20.3, 4.19.3) and simplesamlphp/saml2-legacy to the fixed version of your branch (4.20.3, 4.19.3): composer update simplesamlphp/saml2 simplesamlphp/saml2-legacy.

Canonical URL: https://buzzphp.com/security/ghsa-5cjr-mxj5-wmrx · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.5) |
| Published | 2026-07-02 |
| Updated | 2026-08-05 |
| CVE | [CVE-2026-49289](https://nvd.nist.gov/vuln/detail/CVE-2026-49289) |
| GHSA | [GHSA-5cjr-mxj5-wmrx](https://github.com/advisories/GHSA-5cjr-mxj5-wmrx) |
| Weakness | CWE-400 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| simplesamlphp/saml2 | >= 4.20.0, <= 4.20.2 or <= 4.19.2 | 4.20.3, 4.19.3 |
| simplesamlphp/saml2-legacy | >= 4.20.0, <= 4.20.2 or <= 4.19.2 | 4.20.3, 4.19.3 |

## What to do

Update simplesamlphp/saml2 to the fixed version of your branch (4.20.3, 4.19.3) and simplesamlphp/saml2-legacy to the fixed version of your branch (4.20.3, 4.19.3): composer update simplesamlphp/saml2 simplesamlphp/saml2-legacy.

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

## About this advisory

Summary

This library turned out to be vulnerable to Denial-of-Service attacks using XPath transforms. A mitigation has been put in place to restrict the number of transforms and to restrict transforms to only the transform-algorithms mentioned in the SAML 2.0 Core Specifications (and specifically refuse XPath transforms).

Impact

An attacker is able to send specially crafted messages to any entity relying on SimpleSAMLphp (or directly on this SAML2-library) to be able to perform a Denial-of-Service attack.

## Links

- [GHSA-5cjr-mxj5-wmrx on GitHub](https://github.com/advisories/GHSA-5cjr-mxj5-wmrx)
- [CVE-2026-49289 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-49289)
- [All Composer security advisories](https://buzzphp.com/security)
