CVE-2019-25060: Wp graphql/wp graphql Improper Access Control Vulnerability

MODERATE
Advisory Identifier: GHSA-w3xg-7q6m-3xwp
CVSS 5.3
CWE-284
Published
Advisory Summary

CVE-2019-25060 is a MODERATE (CVSS 5.3) improper access control vulnerability (CWE-284: Improper Access Control) affecting Wp graphql/wp graphql libraries in the Packagist ecosystem. The issue involves improper access control in wp-graphql. Remediation is available by upgrading affected packages to version 0.3.5.

CVE-2019-25060 at a Glance

CVE Identifier CVE-2019-25060
GHSA Identifier GHSA-w3xg-7q6m-3xwp
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-284: Improper Access Control
Affected Product Wp graphql/wp graphql
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:L/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 Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2019-25060

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

wp-graphql/wp-graphql fixed: 0.3.5
Upgrade wp-graphql/wp-graphql to 0.3.5
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 wp-graphql/wp-graphql

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-25060, inspect your project dependencies for Wp graphql/wp graphql:

inspect dependencies for wp-graphql/wp-graphql

Analyze the terminal output to locate any version of Wp graphql/wp graphql in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.5), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Wp graphql/wp graphql, 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

The WPGraphQL WordPress plugin before 0.3.5 doesn't properly restrict access to information about other users' roles on the affected site. Because of this, a remote attacker could forge a GraphQL query to retrieve the account roles of every user on the site.

CVE-2019-25060 Affected Wp graphql/wp graphql Versions

1 component(s)
Fixed Versions:
0.3.5
Product / Package Ecosystem Affected Versions Fixed Version
wp-graphql/wp-graphql
Packagist
< 0.3.5
0.3.5

References

Frequently Asked Questions

What is CVE-2019-25060?
CVE-2019-25060 is a security vulnerability in Wp graphql/wp graphql involving Improper Access Control in wp-graphql under CWE-284: Improper Access Control.
Which Wp graphql/wp graphql versions are affected?
Affected versions include releases prior to 0.3.5 across affected packages: wp-graphql/wp-graphql.
What version fixes CVE-2019-25060?
Upgrading to 0.3.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wp-graphql/wp-graphql affected?
Yes, wp-graphql/wp-graphql is affected in releases prior to 0.3.5. Upgrade your dependency to 0.3.5 or later.
What is the CVSS score of CVE-2019-25060?
CVE-2019-25060 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2019-25060?
CVE-2019-25060 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Packagist dependencies for CVE-2019-25060?
Run the dependency tree command: 'inspect dependencies for wp-graphql/wp-graphql'. 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-w3xg-7q6m-3xwp",
  "modified" : "2022-05-25T19:38:28Z",
  "published" : "2022-05-10T00:00:20Z",
  "aliases" : [ "CVE-2019-25060" ],
  "summary" : "Improper Access Control in wp-graphql",
  "details" : "The WPGraphQL WordPress plugin before 0.3.5 doesn't properly restrict access to information about other users' roles on the affected site. Because of this, a remote attacker could forge a GraphQL query to retrieve the account roles of every user on the site.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "wp-graphql/wp-graphql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-25060"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wp-graphql/wp-graphql/pull/900"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/wp-graphql/wp-graphql"
  }, {
    "type" : "WEB",
    "url" : "https://wpscan.com/vulnerability/393be73a-f8dc-462f-8670-f20ab89421fc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-05-25T19:38:28Z",
    "nvd_published_at" : "2022-05-09T17:15:00Z"
  }
}