GHSA-2g98-f9jv-w8c5: Robrichards/xmlseclibs Robrichards/xmlseclibs XPath Injection Vulnerability
HIGHGHSA-2g98-f9jv-w8c5 is a HIGH (CVSS 7.5) robrichards/xmlseclibs xpath injection vulnerability (CWE-91: XML Injection (aka Blind XPath Injection)) affecting Robrichards/xmlseclibs libraries in the Packagist ecosystem. The issue involves robrichards/xmlseclibs xpath injection. Remediation is available by upgrading affected packages to version 3.0.2.
GHSA-2g98-f9jv-w8c5 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix GHSA-2g98-f9jv-w8c5
To remediate this vulnerability, upgrade all affected Robrichards/xmlseclibs 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 robrichards/xmlseclibs to 3.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for robrichards/xmlseclibs
How to Check if You Are Affected
To determine whether your application is affected by GHSA-2g98-f9jv-w8c5, inspect your project dependencies for Robrichards/xmlseclibs:
inspect dependencies for robrichards/xmlseclibs
Analyze the terminal output to locate any version of Robrichards/xmlseclibs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.2), 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-91: XML Injection (aka Blind XPath Injection), where the product does not properly neutralize special elements that are used in xml, allowing attackers to modify the syntax, content, or commands of the xml before it is processed by an end system. In Robrichards/xmlseclibs, 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-2g98-f9jv-w8c5 Affected Robrichards/xmlseclibs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
robrichards/xmlseclibs
|
Packagist |
≥ 1.0.0
< 3.0.2
|
3.0.2
|
References
Frequently Asked Questions
What is GHSA-2g98-f9jv-w8c5?
Which Robrichards/xmlseclibs versions are affected?
What version fixes GHSA-2g98-f9jv-w8c5?
Is robrichards/xmlseclibs affected?
What is the CVSS score of GHSA-2g98-f9jv-w8c5?
What CWE is associated with GHSA-2g98-f9jv-w8c5?
How can I check Packagist dependencies for GHSA-2g98-f9jv-w8c5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2g98-f9jv-w8c5",
"modified" : "2024-05-20T18:06:52Z",
"published" : "2024-05-20T18:06:52Z",
"aliases" : [ ],
"summary" : "robrichards/xmlseclibs XPath injection",
"details" : "A vulnerability has been identified in the robrichards/xmlseclibs library, specifically related to XPath injection. The issue arises from inadequate filtering of user input before it is incorporated into XPath expressions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "robrichards/xmlseclibs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "3.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/robrichards/xmlseclibs/commit/649032643f7aac493e91ca318da0339aec72aa4a"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/robrichards/xmlseclibs/2018-09-27.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/robrichards/xmlseclibs"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-91" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-20T18:06:52Z",
"nvd_published_at" : null
}
}