GHSA-5c7w-4wm3-85vw: @asymmetric-effort/specifyjs GraphQL Gql Tag Allows Metacharacter Vulnerability

MODERATE
CWE-943
Published
Advisory Summary

GHSA-5c7w-4wm3-85vw is a MODERATE graphql gql tag allows metacharacter vulnerability (CWE-943: Improper Neutralization of Special Elements in Data Query Logic) affecting @asymmetric-effort/specifyjs libraries in the npm ecosystem. The issue involves graphql gql tag allows metacharacter injection. Remediation is available by upgrading affected packages to version 0.2.136.

GHSA-5c7w-4wm3-85vw at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5c7w-4wm3-85vw
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-943: Improper Neutralization of Special Elements in Data Query Logic
Affected Product @asymmetric-effort/specifyjs
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-5c7w-4wm3-85vw

To remediate this vulnerability, upgrade all affected @asymmetric-effort/specifyjs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@asymmetric-effort/specifyjs fixed: 0.2.136
npm install @asymmetric-effort/specifyjs@0.2.136
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @asymmetric-effort/specifyjs

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-5c7w-4wm3-85vw, inspect your project dependencies using npm:

npm ls @asymmetric-effort/specifyjs

Analyze the terminal output to locate any version of @asymmetric-effort/specifyjs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.136), your application is affected.

Note: The npm ls @asymmetric-effort/specifyjs command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-943: Improper Neutralization of Special Elements in Data Query Logic, where the product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query. In @asymmetric-effort/specifyjs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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.

GHSA-5c7w-4wm3-85vw Affected @asymmetric-effort/specifyjs Versions

1 component(s)
Fixed Versions:
0.2.136
Product / Package Ecosystem Affected Versions Fixed Version
@asymmetric-effort/specifyjs
npm
< 0.2.136
0.2.136

References

Frequently Asked Questions

What is GHSA-5c7w-4wm3-85vw?
GHSA-5c7w-4wm3-85vw is a security vulnerability in @asymmetric-effort/specifyjs involving GraphQL gql tag allows metacharacter injection under CWE-943: Improper Neutralization of Special Elements in Data Query Logic.
Which @asymmetric-effort/specifyjs versions are affected?
Affected versions include releases prior to 0.2.136 across affected packages: @asymmetric-effort/specifyjs.
What version fixes GHSA-5c7w-4wm3-85vw?
Upgrading to 0.2.136 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @asymmetric-effort/specifyjs affected?
Yes, @asymmetric-effort/specifyjs is affected in releases prior to 0.2.136. Upgrade your dependency to 0.2.136 or later.
What CWE is associated with GHSA-5c7w-4wm3-85vw?
GHSA-5c7w-4wm3-85vw is classified under CWE-943: Improper Neutralization of Special Elements in Data Query Logic (The product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.).
How can I check npm dependencies for GHSA-5c7w-4wm3-85vw?
Run the dependency tree command: 'npm ls @asymmetric-effort/specifyjs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5c7w-4wm3-85vw",
  "modified" : "2026-07-02T19:00:12Z",
  "published" : "2026-07-02T19:00:12Z",
  "aliases" : [ ],
  "summary" : "@asymmetric-effort/specifyjs: GraphQL gql tag allows metacharacter injection",
  "details" : "## 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" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@asymmetric-effort/specifyjs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.136"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/asymmetric-effort/specifyjs/security/advisories/GHSA-5c7w-4wm3-85vw"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/asymmetric-effort/specifyjs/commit/25d1fb491d99479efdf501f5f75e0bb80c908f0a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/asymmetric-effort/specifyjs"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-943" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-02T19:00:12Z",
    "nvd_published_at" : null
  }
}