GHSA-5c7w-4wm3-85vw: @asymmetric-effort/specifyjs: GraphQL gql tag allows metacharacter injection
The @asymmetric-effort/specifyjs package contained a vulnerability in its gql template tag function where interpolated values with GraphQL metacharacters were concatenated directly into query strings. This allowed potential GraphQL injection attacks. The issue was fixed in version 0.2.136 by making the gql function throw an error when such metacharacters are detected, requiring the use of the variables parameter instead.
AI Analysis
Technical Summary
The gql template tag function in @asymmetric-effort/specifyjs versions prior to 0.2.136 concatenated interpolated values containing GraphQL metacharacters (such as {}, (), :) into query strings despite warnings. This behavior enabled potential GraphQL injection vulnerabilities (CWE-943). The vulnerability was addressed in version 0.2.136 by changing the gql function to throw an error if metacharacters are detected in interpolated values, enforcing safer query construction via variables.
Potential Impact
This vulnerability allows an attacker to inject GraphQL metacharacters into queries, potentially manipulating the query structure and causing unintended behavior or data exposure. The impact is limited to applications using affected versions of the specifyjs gql tag function and depends on how queries are constructed and executed. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in version 0.2.136 of @asymmetric-effort/specifyjs. Users should upgrade to version 0.2.136 or later. The gql function now enforces safe usage by throwing errors on metacharacter interpolation, requiring developers to use the variables parameter for dynamic values.
GHSA-5c7w-4wm3-85vw: @asymmetric-effort/specifyjs: GraphQL gql tag allows metacharacter injection
Description
The @asymmetric-effort/specifyjs package contained a vulnerability in its gql template tag function where interpolated values with GraphQL metacharacters were concatenated directly into query strings. This allowed potential GraphQL injection attacks. The issue was fixed in version 0.2.136 by making the gql function throw an error when such metacharacters are detected, requiring the use of the variables parameter instead.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The gql template tag function in @asymmetric-effort/specifyjs versions prior to 0.2.136 concatenated interpolated values containing GraphQL metacharacters (such as {}, (), :) into query strings despite warnings. This behavior enabled potential GraphQL injection vulnerabilities (CWE-943). The vulnerability was addressed in version 0.2.136 by changing the gql function to throw an error if metacharacters are detected in interpolated values, enforcing safer query construction via variables.
Potential Impact
This vulnerability allows an attacker to inject GraphQL metacharacters into queries, potentially manipulating the query structure and causing unintended behavior or data exposure. The impact is limited to applications using affected versions of the specifyjs gql tag function and depends on how queries are constructed and executed. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in version 0.2.136 of @asymmetric-effort/specifyjs. Users should upgrade to version 0.2.136 or later. The gql function now enforces safe usage by throwing errors on metacharacter interpolation, requiring developers to use the variables parameter for dynamic values.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5c7w-4wm3-85vw
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a46ecbd27e9c7971943ce67
Added to database: 07/02/2026, 22:57:01 UTC
Last enriched: 07/02/2026, 23:15:00 UTC
Last updated: 07/03/2026, 03:24:22 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.