---
canonical: "https://firewall.lpm.dev/npm/@hygraph/cli/v/0.0.21"
markdown: "https://firewall.lpm.dev/npm/@hygraph/cli/v/0.0.21.md"
package: "@hygraph/cli"
report_status: "published"
title: "@hygraph/cli@0.0.21 npm security report"
verdict: "suspicious"
version: "0.0.21"
---

# @hygraph/cli@0.0.21 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged — allowed with a warning** — Allowed by default policy, but 12 findings warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Telemetry warning (can be blocked)
- **Public report status:** Published
- **Threat category:** Telemetry
- **Selected version:** 0.0.21
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The CLI enables disclosed, opt-out runtime telemetry by default in production and sends project IDs, environments, and endpoint hosts to its analytics service. This is suspicious telemetry under the review rules; the inspected payload does not include the Hygraph auth token.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 96.0%
- **Started:** 2026-11-18T14:03:25.607Z
- **Finished:** 2026-11-18T14:04:38.751Z
- **Download time:** 512 ms
- **Static scan time:** 3676 ms
- **AI review time:** 68955 ms
- **Total time:** 73144 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Default runtime telemetry sends Hygraph project identifiers and endpoint details to the package’s analytics and error-reporting services.

- **Trigger:** Running a CLI command in the production build; telemetry is skipped when disabled with the documented environment flags.

- **Impact:** The vendor’s analytics services receive identifying details about the user’s Hygraph projects, making this suspicious telemetry.

- **Evidence paths:** bin/hygraph.js, dist/cli.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-18T14:04:38.751Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** Usage events include project IDs, environments, and endpoint hosts; some error reports also include project and migration identifiers.

- **Rationale:** The CLI enables disclosed, opt-out runtime telemetry by default in production and sends project IDs, environments, and endpoint hosts to its analytics service. This is suspicious telemetry under the review rules; the inspected payload does not include the Hygraph auth token.

- **Files touched:** dist/cli.js, ~/.config/hygraph/cli.json, ${XDG\_CONFIG\_HOME}/hygraph/cli.json

- **Network endpoints:** graphcmsdb.dataplane.rudderstack.com, o4508006286491648.ingest.de.sentry.io

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 96.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The executable calls the CLI runner, which wraps commands in telemetry., Telemetry is enabled by default in production and has an opt-out., Usage events include Hygraph project IDs, environments, and endpoint hosts., Failure reports sent to Sentry include project and migration identifiers.

- **Evidence against:** The CLI discloses its telemetry and how to turn it off., The notice says auth tokens are not sent; the inspected telemetry fields do not include the token., The package’s documented purpose is managing Hygraph schemas, and its management API uses the configured Hygraph target.

## Affected versions and remediation

This report applies to @hygraph/cli@0.0.21.

- Review the evidence and your use of @hygraph/cli@0.0.21 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@hygraph/cli@0.0.21/dist/cli.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L5: import { EventEmitter } from "node:events";
L6: import childProcess from "node:child_process";
L7: import path, { dirname, join, resolve } from "node:path";
```

### 3. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@hygraph/cli@0.0.21/dist/cli.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L6090: try {
L6091: new Function("");
L6092: return true;
```

### 4. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 5. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 6. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 7. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@hygraph/cli@0.0.21/dist/cli.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: dist/cli.js spawns dist/define2.js; helper contains network access plus dynamic code execution.
L5: import { EventEmitter } from "node:events";
L6: import childProcess from "node:child_process";
L7: import path, { dirname, join, resolve } from "node:path";
...
L22: * Constructs the CommanderError class
L23: * @param {number} exitCode suggested exit code which could be used with process.exit
L24: * @param {string} code an id string representing the error
...
L162: * @return {string}
L163: * @private
L164: */
...
L172: * TypeScript import types for JSDoc, used by Visual Studio Code IntelliSense and `npm run typescript-checkJS`
L173: * https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#import-types
L174: * @typedef { import("./argument.j
```

### 8. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 9. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 10. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@hygraph/cli@0.0.21/dist/cli.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = @hygraph/cli@0.0.19
matchedIdentity = npm:QGh5Z3JhcGgvY2xp:0.0.19
similarity = 0.800
summary = stored previous version shares package body but lacks this dangerous source file
```

### 11. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 96.0%
- **Path:** bin/hygraph.js
- **Public source:** [View source](<https://unpkg.com/@hygraph/cli@0.0.21/bin/hygraph.js>)

The executable calls the CLI runner, which wraps commands in telemetry.

Public source snippet (untrusted):

```javascript
await run();
} catch (error) {
  // Commander has already exited for its own err
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 96.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@hygraph/cli@0.0.21/dist/cli.js>)

Telemetry is enabled by default in production and has an opt-out.

Public source snippet (untrusted):

```javascript
return cliEnvironment === "production";
}
/** `$XDG_CONFIG_HOME/hygraph/cli.json`, else `~/.config/hygraph/cli.json`. */
function statePath(env, home) {
	return join(env.XDG_CONFIG
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 3
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 21
- **Published dependency-graph edges:** 3

### Published dependency entries
- diff ^9.0.0 (Dependency)
- jiti ^2.7.0 (Dependency)
- oxfmt 0.68.0 (Dependency)

## Package metadata
- **Package:** @hygraph/cli
- **Ecosystem:** npm
- **Version:** 0.0.21
- **License:** MIT
- **Version published:** 2026-11-18T13:58:28.812Z
- **Package first seen:** 2026-09-15T20:04:54.205Z
- **Package last seen:** 2026-11-18T15:33:13.124Z
- **Known versions:** 18
- **Latest version:** 0.1.0
- **Appeal under review:** No
- **Description:** Manage your Hygraph schema as code
- **Deprecated:** This version is no longer supported. Please upgrade to the latest version: npm i -g @hygraph/cli@latest
- **Author:** Hygraph GmbH
- **Maintainers:** danielhygraph, graphcms-owner, skolz, mirko-hygraph, ricardo.costa\_hygraph, danijel\_vincijanovic, vane.hygraph, alexandrehygraph, rishitells-hygraph, hygtoman, jonas\_hygraph, omonayajo
- **Runtime engines:** node: \>=22, pnpm: ^10.0.0
- **Artifact files:** 19
- **Artifact unpacked size:** 1,495,526 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@hygraph/cli/v/0.0.21>)
