GHSA-5j8p-438x-rgg5: Onelogin/php saml SAML PHP Toolkit Vulnerability On Vulnerability

CRITICAL
CWE-1395
Published
Advisory Summary

GHSA-5j8p-438x-rgg5 is a CRITICAL saml php toolkit vulnerability on vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting Onelogin/php saml libraries in the Packagist ecosystem. The issue involves saml php toolkit vulnerability on xmlseclibs cve-2025-66475. Remediation is available by upgrading affected packages to version 3.8.1, 4.3.1, 2.21.1.

GHSA-5j8p-438x-rgg5 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5j8p-438x-rgg5
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-1395: Dependency on Vulnerable Third-Party Component
Affected Product Onelogin/php saml
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-5j8p-438x-rgg5

To remediate this vulnerability, upgrade all affected Onelogin/php saml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

onelogin/php-saml fixed: 3.8.1
Upgrade onelogin/php-saml to 3.8.1
onelogin/php-saml fixed: 4.3.1
Upgrade onelogin/php-saml to 4.3.1
onelogin/php-saml fixed: 2.21.1
Upgrade onelogin/php-saml to 2.21.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for onelogin/php-saml

How to Check if You Are Affected

To determine whether your application is affected by GHSA-5j8p-438x-rgg5, inspect your project dependencies for Onelogin/php saml:

inspect dependencies for onelogin/php-saml

Analyze the terminal output to locate any version of Onelogin/php saml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.8.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. In Onelogin/php saml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

**Summary** There is a critical vulnerability on xmlseclibs [CVE-2025-66475](https://github.com/robrichards/xmlseclibs/security/advisories/GHSA-c4cc-x928-vjw9), a dependency of php-saml Update to the following versions of php-saml which forces the use of patched versions of xmlseclibs: - [2.21.1](https://github.com/SAML-Toolkits/php-saml/releases/tag/2.21.1) - [3.8.1](https://github.com/SAML-Toolkits/php-saml/releases/tag/3.8.1) - [4.3.1](https://github.com/SAML-Toolkits/php-saml/releases/tag/4.3.1) **Impact** Signature Wrapping Vulnerabilities allows an attacker to impersonate a user.

GHSA-5j8p-438x-rgg5 Affected Onelogin/php saml Versions

3 component(s)
Fixed Versions:
3.8.14.3.12.21.1
Product / Package Ecosystem Affected Versions Fixed Version
onelogin/php-saml
Packagist
≥ 3.0.0
< 3.8.1
3.8.1
onelogin/php-saml
Packagist
≥ 4.0.0
< 4.3.1
4.3.1
onelogin/php-saml
Packagist
< 2.21.1
2.21.1

References

Frequently Asked Questions

What is GHSA-5j8p-438x-rgg5?
GHSA-5j8p-438x-rgg5 is a security vulnerability in Onelogin/php saml involving SAML PHP Toolkit Vulnerability on xmlseclibs CVE-2025-66475 under CWE-1395: Dependency on Vulnerable Third-Party Component.
Which Onelogin/php saml versions are affected?
Affected versions include releases prior to 3.8.1, 4.3.1, 2.21.1 across affected packages: onelogin/php-saml.
What version fixes GHSA-5j8p-438x-rgg5?
Upgrading to 3.8.1, 4.3.1, 2.21.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is onelogin/php-saml affected?
Yes, onelogin/php-saml is affected in releases prior to 3.8.1, 4.3.1, 2.21.1. Upgrade your dependency to 3.8.1, 4.3.1, 2.21.1 or later.
What CWE is associated with GHSA-5j8p-438x-rgg5?
GHSA-5j8p-438x-rgg5 is classified under CWE-1395: Dependency on Vulnerable Third-Party Component (The product has a dependency on a third-party component that contains one or more known vulnerabilities.).
How can I check Packagist dependencies for GHSA-5j8p-438x-rgg5?
Run the dependency tree command: 'inspect dependencies for onelogin/php-saml'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5j8p-438x-rgg5",
  "modified" : "2025-12-09T17:24:09Z",
  "published" : "2025-12-09T17:24:09Z",
  "aliases" : [ ],
  "summary" : " SAML PHP Toolkit Vulnerability on xmlseclibs CVE-2025-66475 ",
  "details" : "**Summary**\n\nThere is a critical vulnerability on xmlseclibs [CVE-2025-66475](https://github.com/robrichards/xmlseclibs/security/advisories/GHSA-c4cc-x928-vjw9), a dependency of php-saml\n\nUpdate to the following versions of php-saml which forces the use of patched versions of xmlseclibs:\n- [2.21.1](https://github.com/SAML-Toolkits/php-saml/releases/tag/2.21.1)\n- [3.8.1](https://github.com/SAML-Toolkits/php-saml/releases/tag/3.8.1)\n- [4.3.1](https://github.com/SAML-Toolkits/php-saml/releases/tag/4.3.1)\n\n\n**Impact**\n\nSignature Wrapping Vulnerabilities allows an attacker to impersonate a user.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "onelogin/php-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.21.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "onelogin/php-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.8.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "onelogin/php-saml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/SAML-Toolkits/php-saml/security/advisories/GHSA-5j8p-438x-rgg5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/robrichards/xmlseclibs/security/advisories/GHSA-c4cc-x928-vjw9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/SAML-Toolkits/php-saml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SAML-Toolkits/php-saml/releases/tag/2.21.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SAML-Toolkits/php-saml/releases/tag/3.8.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/SAML-Toolkits/php-saml/releases/tag/4.3.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1395" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-09T17:24:09Z",
    "nvd_published_at" : null
  }
}