GHSA-5j8p-438x-rgg5: Onelogin/php saml SAML PHP Toolkit Vulnerability On Vulnerability
CRITICALGHSA-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
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.
Upgrade onelogin/php-saml to 3.8.1
Upgrade onelogin/php-saml to 4.3.1
Upgrade onelogin/php-saml to 2.21.1
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
GHSA-5j8p-438x-rgg5 Affected Onelogin/php saml Versions
3 component(s)| 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?
Which Onelogin/php saml versions are affected?
What version fixes GHSA-5j8p-438x-rgg5?
Is onelogin/php-saml affected?
What CWE is associated with GHSA-5j8p-438x-rgg5?
How can I check Packagist dependencies for GHSA-5j8p-438x-rgg5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}