@asymmetric-effort/specifyjs: GraphQL gql tag allows metacharacter injection
Moderate severity
GitHub Reviewed
Published
May 29, 2026
in
asymmetric-effort/specifyjs
•
Updated Jul 2, 2026
Description
Published to the GitHub Advisory Database
Jul 2, 2026
Reviewed
Jul 2, 2026
Last updated
Jul 2, 2026
Finding
Location:
core/src/client/graphql.ts:66-80The
gqltemplate tag function warned about interpolated values containing GraphQL metacharacters ({}():) but still concatenated them into the query string, enabling potential GraphQL injection.Status
Fixed in v0.2.136 — The
gqlfunction now throws an error when metacharacters are detected in interpolated values, forcing developers to use thevariablesparameter.References