# SAML PHP Toolkit Vulnerability on xmlseclibs

Source: https://junglewise.ai/threats/saml-php-toolkit-vulnerability-on-xmlseclibs-42e7a8d3  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-09  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 4 · Published 2025-12-09

SAML PHP Toolkit Vulnerability on xmlseclibs CVE-2025-66475

Technologies: [onelogin/php-saml (Packagist)](https://junglewise.ai/threats/technologies/onelogin-php-saml). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Medium severity, with a CVSS score of 4, published 9 December 2025.

**Which products and versions are affected?** onelogin/php-saml (Packagist) ECOSYSTEM:introduced=0,fixed=2.21.1.

**Is there a fix for This vulnerability?** Yes. onelogin/php-saml (Packagist): upgrade to 2.21.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run onelogin/php-saml (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- onelogin/php-saml (Packagist): upgrade to 2.21.1 or later

  ```sh
  composer require onelogin/php-saml:^2.21.1
  ```


## Affected products

- onelogin/php-saml (Packagist) ECOSYSTEM:introduced=0,fixed=2.21.1

## Related threats

- [onelogin/php-saml signature wrapping attacks](https://junglewise.ai/threats/cve-2016-1000253-onelogin-php-saml-signature-wrapping-attacks)
- [onelogin/php-saml Improper signature validation on LogoutRequest/LogoutResponse.](https://junglewise.ai/threats/onelogin-php-saml-improper-signature-validation-on-logoutrequest-adecc916)
