BuzzPHP
LightDarkSystem

SimpleSAMLphp has Possible DoS via XPath Transform

High severity. Published 2 July 2026. 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.

Which versions are affected?

PackageAffected versionsFixed in
simplesamlphp/saml2 (opens in a new tab)>= 4.20.0, <= 4.20.2 | <= 4.19.24.20.3, 4.19.3
simplesamlphp/saml2-legacy (opens in a new tab)>= 4.20.0, <= 4.20.2 | <= 4.19.24.20.3, 4.19.3

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show simplesamlphp/saml2
composer audit

Advisory details

SeverityHighCVSS 7.5
Published
Updated
CVECVE-2026-49289 (opens in a new tab)
GHSAGHSA-5cjr-mxj5-wmrx (opens in a new tab)
WeaknessCWE-400

What the advisory says

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.

Source: GHSA-5cjr-mxj5-wmrx (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories