GHSA-2g98-f9jv-w8c5: Robrichards/xmlseclibs Robrichards/xmlseclibs XPath Injection Vulnerability

HIGH
CVSS 7.5
CWE-91
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-2g98-f9jv-w8c5
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-91: XML Injection (aka Blind XPath Injection)
Affected Product Robrichards/xmlseclibs
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

robrichards/xmlseclibs fixed: 3.0.2
Upgrade robrichards/xmlseclibs to 3.0.2
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 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

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.

GHSA-2g98-f9jv-w8c5 Affected Robrichards/xmlseclibs Versions

1 component(s)
Fixed Versions:
3.0.2
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?
GHSA-2g98-f9jv-w8c5 is a security vulnerability in Robrichards/xmlseclibs involving robrichards/xmlseclibs XPath injection under CWE-91: XML Injection (aka Blind XPath Injection).
Which Robrichards/xmlseclibs versions are affected?
Affected versions include releases prior to 3.0.2 across affected packages: robrichards/xmlseclibs.
What version fixes GHSA-2g98-f9jv-w8c5?
Upgrading to 3.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is robrichards/xmlseclibs affected?
Yes, robrichards/xmlseclibs is affected in releases prior to 3.0.2. Upgrade your dependency to 3.0.2 or later.
What is the CVSS score of GHSA-2g98-f9jv-w8c5?
GHSA-2g98-f9jv-w8c5 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-2g98-f9jv-w8c5?
GHSA-2g98-f9jv-w8c5 is classified under CWE-91: XML Injection (aka Blind XPath Injection) (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.).
How can I check Packagist dependencies for GHSA-2g98-f9jv-w8c5?
Run the dependency tree command: 'inspect dependencies for robrichards/xmlseclibs'. 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-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
  }
}