# GHSA-5c7w-4wm3-85vw: @asymmetric-effort/specifyjs: GraphQL gql tag allows metacharacter injection

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-02T19:00:12.000Z
- Modified: 2026-09-10T03:51:10.446Z
- Weaknesses: CWE-943

## Description

## Finding

**Location**: `core/src/client/graphql.ts:66-80`

The `gql` template 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 `gql` function now throws an error when metacharacters are detected in interpolated values, forcing developers to use the `variables` parameter.

(As written by GitHub Advisory Database.)

## Affected

- @asymmetric-effort/specifyjs (npm): before 0.2.136

## References

- <https://github.com/asymmetric-effort/specifyjs/security/advisories/GHSA-5c7w-4wm3-85vw> (web)
- <https://github.com/asymmetric-effort/specifyjs/commit/25d1fb491d99479efdf501f5f75e0bb80c908f0a> (web)
- <https://github.com/asymmetric-effort/specifyjs> (package)

## Sources

- GitHub Advisory Database: [GHSA-5c7w-4wm3-85vw](https://github.com/advisories/GHSA-5c7w-4wm3-85vw), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/GHSA-5c7w-4wm3-85vw · Whole record: https://cve.day/GHSA-5c7w-4wm3-85vw.json · Rebuilt by cve.day 2026-11-25T22:56:44.162Z
