GHSA-6wqp-7g94-f69j: Sensiolabs/connect Sensiolabs/connect Has A Cross-Site Request Vulnerability

MODERATE
CVSS 6.1
CWE-352
Published
Advisory Summary

GHSA-6wqp-7g94-f69j is a MODERATE (CVSS 6.1) sensiolabs/connect has a cross-site request vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Sensiolabs/connect libraries in the Packagist ecosystem. The issue involves sensiolabs/connect has a cross-site request forgery vulnerability. Remediation is available by upgrading affected packages to version 4.2.3.

GHSA-6wqp-7g94-f69j at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-6wqp-7g94-f69j
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Sensiolabs/connect
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.1

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:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-6wqp-7g94-f69j

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

sensiolabs/connect fixed: 4.2.3
Upgrade sensiolabs/connect to 4.2.3
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 sensiolabs/connect

How to Check if You Are Affected

To determine whether your application is affected by GHSA-6wqp-7g94-f69j, inspect your project dependencies for Sensiolabs/connect:

inspect dependencies for sensiolabs/connect

Analyze the terminal output to locate any version of Sensiolabs/connect in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.2.3), 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Sensiolabs/connect, 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

Versions of sensiolabs/connect prior to 4.2.3 are affected by a Cross-Site Request Forgery (CSRF) vulnerability due to the absence of the state parameter in OAuth requests. The lack of proper state parameter handling exposes applications to CSRF attacks during the OAuth authentication flow.

GHSA-6wqp-7g94-f69j Affected Sensiolabs/connect Versions

1 component(s)
Fixed Versions:
4.2.3
Product / Package Ecosystem Affected Versions Fixed Version
sensiolabs/connect
Packagist
< 4.2.3
4.2.3

References

Frequently Asked Questions

What is GHSA-6wqp-7g94-f69j?
GHSA-6wqp-7g94-f69j is a security vulnerability in Sensiolabs/connect involving sensiolabs/connect has a Cross-Site Request Forgery Vulnerability under CWE-352: Cross-Site Request Forgery (CSRF).
Which Sensiolabs/connect versions are affected?
Affected versions include releases prior to 4.2.3 across affected packages: sensiolabs/connect.
What version fixes GHSA-6wqp-7g94-f69j?
Upgrading to 4.2.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sensiolabs/connect affected?
Yes, sensiolabs/connect is affected in releases prior to 4.2.3. Upgrade your dependency to 4.2.3 or later.
What is the CVSS score of GHSA-6wqp-7g94-f69j?
GHSA-6wqp-7g94-f69j has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-6wqp-7g94-f69j?
GHSA-6wqp-7g94-f69j is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check Packagist dependencies for GHSA-6wqp-7g94-f69j?
Run the dependency tree command: 'inspect dependencies for sensiolabs/connect'. 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-6wqp-7g94-f69j",
  "modified" : "2024-05-21T18:26:46Z",
  "published" : "2024-05-21T18:26:46Z",
  "aliases" : [ ],
  "summary" : "sensiolabs/connect has a Cross-Site Request Forgery Vulnerability",
  "details" : "Versions of sensiolabs/connect prior to 4.2.3 are affected by a Cross-Site Request Forgery (CSRF) vulnerability due to the absence of the state parameter in OAuth requests. The lack of proper state parameter handling exposes applications to CSRF attacks during the OAuth authentication flow.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sensiolabs/connect"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.2.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sensiolabs/connect/pull/63"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfonycorp/connect/commit/9522aa774e8a0f8a61e709d828e6cc34c4c1e703"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/sensiolabs/connect/2018-06-08-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/symfonycorp/connect"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-21T18:26:46Z",
    "nvd_published_at" : null
  }
}