# GHSA-74hv-qjjq-h7g5: datasette-graphql leaks details of the schema of private database files


- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 24 Nov 2020

## What is GHSA-74hv-qjjq-h7g5?

GHSA-74hv-qjjq-h7g5 is a vulnerability in datasette-graphql, published on 24 Nov 2020. 

### Official description

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

## Which versions are affected by GHSA-74hv-qjjq-h7g5?

2 open source packages ship an affected version, including datasette-graphql.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `datasette-graphql` | PyPI | All versions | 1.2 |
| `datasette-graphql` | PyPI | All versions | 1.2 |

## How do I fix GHSA-74hv-qjjq-h7g5?

Upgrade datasette-graphql to 1.2 or later.

## Is GHSA-74hv-qjjq-h7g5 being exploited?

There is no known exploitation of GHSA-74hv-qjjq-h7g5 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-74hv-qjjq-h7g5 and fix it if it is affected.

What it is: GHSA-74hv-qjjq-h7g5 is a vulnerability in datasette-graphql, published on 24 Nov 2020. 
Exploitation: There is no known exploitation of GHSA-74hv-qjjq-h7g5 in the wild and no public exploit code.

Affected packages and fixed versions:
- datasette-graphql (PyPI): affected all versions; fixed in 1.2
- datasette-graphql (PyPI): affected all versions; fixed in 1.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-74hv-qjjq-h7g5/ (Markdown: https://insights.sbomify.com/GHSA-74hv-qjjq-h7g5/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-74hv-qjjq-h7g5

---
From sbomify Insights: https://insights.sbomify.com/GHSA-74hv-qjjq-h7g5/
Summaries are generated and may contain mistakes; the official description above is the record.
