Skip to content

Unauthenticated GraphQL introspection exposes database schema #36

Description

@pgagnidze

GraphQL introspection queries return the full database schema (table names, columns, relationships) without authentication. Data queries are correctly gated behind HasProjectPermissions, but introspection bypasses it.

curl -X POST -H "Content-Type: application/json" \
  -d '{"query":"{ __schema { queryType { fields { name } } } }"}' \
  https://your-jet-bridge/api/graphql/
# Returns all table names, column types, relationships, no token needed

Fix would be adding HasProjectPermissions to GraphQLView for introspection queries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions