GHSA-74hv-qjjq-h7g5: Datasette graphql Datasette-graphql Leaks Details Of The Vulnerability

LOW
CWE-200
Published
Advisory Summary

GHSA-74hv-qjjq-h7g5 is a LOW datasette-graphql leaks details of the vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Datasette graphql libraries in the PyPI ecosystem. The issue involves datasette-graphql leaks details of the schema of private database files. Remediation is available by upgrading affected packages to version 1.2.

GHSA-74hv-qjjq-h7g5 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-74hv-qjjq-h7g5
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Datasette graphql
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-74hv-qjjq-h7g5

To remediate this vulnerability, upgrade all affected Datasette 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.

datasette-graphql fixed: 1.2
pip install datasette-graphql>=1.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show datasette-graphql

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-74hv-qjjq-h7g5, inspect your installed packages using pip:

pip show datasette-graphql

Analyze the terminal output to locate any version of Datasette graphql in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2), your application is affected.

Note: The pip show datasette-graphql command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Datasette 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

### Impact When running against a Datasette instance with private databases, `datasette-graphql` would expose the schema of those database tables - but not the table contents. ### Patches Patched in version 1.2. ### Workarounds This issue is only present if a Datasette instance that includes private databases and has the `datasette-graphql` plugin installed is available on the public internet. Uninstalling the `datasette-graphql` plugin or preventing public access to the instance can workaround this issue. ### For more information If you have any questions or comments about this advisory: * Open an issue in [datasette-graphql](https://github.com/simonw/datasette-graphql) * Contact [@simonw](https://twitter.com/simonw) by Twitter direct message

GHSA-74hv-qjjq-h7g5 Affected Datasette graphql Versions

1 component(s)
Fixed Versions:
1.2
Product / Package Ecosystem Affected Versions Fixed Version
datasette-graphql
PyPI
< 1.2
1.2

References

Frequently Asked Questions

What is GHSA-74hv-qjjq-h7g5?
GHSA-74hv-qjjq-h7g5 is a security vulnerability in Datasette graphql involving datasette-graphql leaks details of the schema of private database files under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Datasette graphql versions are affected?
Affected versions include releases prior to 1.2 across affected packages: datasette-graphql.
What version fixes GHSA-74hv-qjjq-h7g5?
Upgrading to 1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is datasette-graphql affected?
Yes, datasette-graphql is affected in releases prior to 1.2. Upgrade your dependency to 1.2 or later.
What CWE is associated with GHSA-74hv-qjjq-h7g5?
GHSA-74hv-qjjq-h7g5 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for GHSA-74hv-qjjq-h7g5?
Run the dependency tree command: 'pip show datasette-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-74hv-qjjq-h7g5",
  "modified" : "2020-11-24T21:42:40Z",
  "published" : "2020-11-24T22:59:08Z",
  "aliases" : [ ],
  "summary" : "datasette-graphql leaks details of the schema of private database files",
  "details" : "### Impact\n\nWhen running against a Datasette instance with private databases, `datasette-graphql` would expose the schema of those database tables - but not the table contents.\n\n### Patches\n\nPatched in version 1.2.\n\n### Workarounds\n\nThis issue is only present if a Datasette instance that includes private databases and has the `datasette-graphql` plugin installed is available on the public internet. Uninstalling the `datasette-graphql` plugin or preventing public access to the instance can workaround this issue.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [datasette-graphql](https://github.com/simonw/datasette-graphql)\n* Contact [@simonw](https://twitter.com/simonw) by Twitter direct message",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "datasette-graphql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/simonw/datasette-graphql/security/advisories/GHSA-74hv-qjjq-h7g5"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/datasette-graphql"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-11-24T21:42:40Z",
    "nvd_published_at" : null
  }
}