{"id":"GHSA-5c7w-4wm3-85vw","aliases":[],"status":"published","title":"@asymmetric-effort/specifyjs: GraphQL gql tag allows metacharacter injection","description":"## Finding\n\n**Location**: `core/src/client/graphql.ts:66-80`\n\nThe `gql` template tag function warned about interpolated values containing GraphQL metacharacters (`{}():`) but still concatenated them into the query string, enabling potential GraphQL injection.\n\n## Status\n\n**Fixed in v0.2.136** — The `gql` function now throws an error when metacharacters are detected in interpolated values, forcing developers to use the `variables` parameter.","severity":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-943"],"published":"2026-07-02T19:00:12Z","modified":"2026-09-10T03:51:10Z","fixes":[{"ecosystem":"npm","package":"@asymmetric-effort/specifyjs","fixed_in":["0.2.136"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@asymmetric-effort/specifyjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.136"}]}]},{"source":"osv","ecosystem":"npm","package":"@asymmetric-effort/specifyjs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.2.136"}]}]}],"references":[{"url":"https://github.com/asymmetric-effort/specifyjs/security/advisories/GHSA-5c7w-4wm3-85vw","tags":["web"]},{"url":"https://github.com/asymmetric-effort/specifyjs/commit/25d1fb491d99479efdf501f5f75e0bb80c908f0a","tags":["web"]},{"url":"https://github.com/advisories/GHSA-5c7w-4wm3-85vw"},{"url":"https://github.com/asymmetric-effort/specifyjs","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-5c7w-4wm3-85vw","title":"@asymmetric-effort/specifyjs: GraphQL gql tag allows metacharacter injection","description":"## Finding\n\n**Location**: `core/src/client/graphql.ts:66-80`\n\nThe `gql` template tag function warned about interpolated values containing GraphQL metacharacters (`{}():`) but still concatenated them into the query string, enabling potential GraphQL injection.\n\n## Status\n\n**Fixed in v0.2.136** — The `gql` function now throws an error when metacharacters are detected in interpolated values, forcing developers to use the `variables` parameter.","status":"published","published":"2026-07-02T19:00:12Z","modified":"2026-07-02T19:00:13Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-943"],"updated_at":"2026-11-02T14:40:37.437888Z"}],"osv":[{"id":"GHSA-5c7w-4wm3-85vw","title":"@asymmetric-effort/specifyjs: GraphQL gql tag allows metacharacter injection","description":"## Finding\n\n**Location**: `core/src/client/graphql.ts:66-80`\n\nThe `gql` template tag function warned about interpolated values containing GraphQL metacharacters (`{}():`) but still concatenated them into the query string, enabling potential GraphQL injection.\n\n## Status\n\n**Fixed in v0.2.136** — The `gql` function now throws an error when metacharacters are detected in interpolated values, forcing developers to use the `variables` parameter.","status":"published","published":"2026-07-02T19:00:12Z","modified":"2026-09-10T03:51:10.446887808Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-943"],"updated_at":"2026-11-02T15:46:38.213481Z"}]}}
