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

# solvit-cli@0.4.2 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 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Credential Exfiltration
- **Selected version:** 0.4.2
- **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 fallback can forward an environment-held API key to a package-selected endpoint when no endpoint is configured. Source does not establish an unrelated recipient or malicious intent, so this warrants a warning rather than a block.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 84.0%
- **Started:** 2026-10-28T03:41:35.353Z
- **Finished:** 2026-10-28T03:43:40.755Z
- **Download time:** 260 ms
- **Static scan time:** 115 ms
- **AI review time:** 125026 ms
- **Total time:** 125402 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:** A configured solver API key can be sent to the bundled endpoint when the endpoint setting is absent. The source does not establish that the endpoint is unrelated, so this is a conditional credential exposure.

- **Trigger:** Run a solver command with SOLVIT\_API\_KEY set and no endpoint configured in the environment or saved settings.

- **Impact:** The environment-held API key may be disclosed to the package-selected endpoint.

- **Evidence paths:** bin/solvit.js, bin/defaults.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-28T03:43:40.755Z

### AI review details

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

- **Mechanism:** The fallback selects the bundled base URL while taking SOLVIT\_API\_KEY ahead of the bundled key, then sends the selected key in the request’s authorization header.

- **Rationale:** The fallback can forward an environment-held API key to a package-selected endpoint when no endpoint is configured. Source does not establish an unrelated recipient or malicious intent, so this warrants a warning rather than a block.

- **Network endpoints:** http://144.24.117.169:20128/v1/chat/completions

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 84.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** When no endpoint is configured, the solver selects the bundled endpoint but prefers an environment-held SOLVIT\_API\_KEY; its request sends that key as a bearer token., Chat credentials are entered for login or signup and sent to the server selected from configuration, saved settings, the built-in service, or an interactive prompt; the session token is saved locally with restrictive permissions., The manifest exposes the CLI entrypoint and declares no install lifecycle hook.

- **Evidence against:** The bundled endpoint is part of the CLI’s solver and chat service configuration, and source does not establish that it is unrelated to the package., The README instructs users to configure the solver endpoint and API key together; the exposure requires a key to be present while the endpoint is unset.

## Affected versions and remediation

This report applies to solvit-cli@0.4.2.

- Review the evidence and your use of solvit-cli@0.4.2 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. Medium: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** bin/chat.js
- **Public source:** [View source](<https://unpkg.com/solvit-cli@0.4.2/bin/chat.js>)

Package contains a possible secret pattern.

Public source snippet (untrusted):

```javascript
patternName = generic_password
severity = medium
line = 104
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 7. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 84.0%
- **Path:** bin/solvit.js
- **Public source:** [View source](<https://unpkg.com/solvit-cli@0.4.2/bin/solvit.js>)

When no endpoint is configured, the solver selects the bundled endpoint but prefers an environment-held SOLVIT\_API\_KEY; its request sends that key as a bearer token.

Public source snippet (untrusted):

```javascript
function endpoint(baseUrl) {
  return /\/v1$/.test(baseUrl) ? `${baseUrl}/chat/completions` : `${baseUrl}/v1/chat/completions`;
}

function collectContext(paths) {
  const parts =
```

### 8. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 84.0%
- **Path:** bin/solvit.js
- **Public source:** [View source](<https://unpkg.com/solvit-cli@0.4.2/bin/solvit.js>)

When no endpoint is configured, the solver selects the bundled endpoint but prefers an environment-held SOLVIT\_API\_KEY; its request sends that key as a bearer token.

Public source snippet (untrusted):

```javascript
/\/v1$/.test(baseUrl) ? `${baseUrl}/chat/completions` : `${baseUrl}/v1/chat/completions`;
}

function collectContext(paths) {
  const parts = [];
  let total = 0;
  const add = (fi
```

### 9. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 84.0%
- **Path:** bin/solvit.js
- **Public source:** [View source](<https://unpkg.com/solvit-cli@0.4.2/bin/solvit.js>)

When no endpoint is configured, the solver selects the bundled endpoint but prefers an environment-held SOLVIT\_API\_KEY; its request sends that key as a bearer token.

Public source snippet (untrusted):

```javascript
endpoint(baseUrl) : '-'}`);
  console.log(`API key  : ${masked}`);
  console.log(`model    : ${model}`);
  if (builtin) console.log('source   : built-in default (run "solvit init"
```

### 10. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 84.0%
- **Path:** bin/solvit.js
- **Public source:** [View source](<https://unpkg.com/solvit-cli@0.4.2/bin/solvit.js>)

When no endpoint is configured, the solver selects the bundled endpoint but prefers an environment-held SOLVIT\_API\_KEY; its request sends that key as a bearer token.

Public source snippet (untrusted):

```javascript
chat({ baseUrl, apiKey, model }, messages, stream, signal) {
  const res = await fetch(endpoint(baseUrl), {
    signal,
    method: 'POST',
    headers: {
      'Content-Type': 'ap
```

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

When no endpoint is configured, the solver selects the bundled endpoint but prefers an environment-held SOLVIT\_API\_KEY; its request sends that key as a bearer token.

Public source snippet (untrusted):

```javascript
chat(cfg, buildMessages({ file, source, opts }), false, signal);
}

function spinner(label) {
  if (!process.stderr.isTTY) return () => {};
  const frames = ['⠋', '⠙', '⠹', '
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 84.0%
- **Path:** bin/solvit.js
- **Public source:** [View source](<https://unpkg.com/solvit-cli@0.4.2/bin/solvit.js>)

When no endpoint is configured, the solver selects the bundled endpoint but prefers an environment-held SOLVIT\_API\_KEY; its request sends that key as a bearer token.

Public source snippet (untrusted):

```javascript
chat(cfg, messages, stream);
  } finally {
    stop();
  }
  if (!stream && !opts.write) console.log(answer);
  if (stream) process.stdout.write('\n');

  if (opts.write) {
    con
```

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

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

## Package metadata
- **Package:** solvit-cli
- **Ecosystem:** npm
- **Version:** 0.4.2
- **License:** MIT
- **Version published:** 2026-10-28T03:34:42.630Z
- **Package first seen:** 2026-10-19T07:43:07.185Z
- **Package last seen:** 2026-11-04T18:00:56.547Z
- **Known versions:** 7
- **Latest version:** 0.5.0
- **Appeal under review:** No
- **Description:** Solve or fix a coding file from your terminal using any OpenAI-compatible LLM endpoint.
- **Maintainers:** garvit\_bhattt
- **Keywords:** cli, llm, ai, code, solve, openai-compatible
- **Runtime engines:** node: \>=18
- **Artifact files:** 9
- **Artifact unpacked size:** 100,178 bytes
- **Artifact signatures:** 2
- **Attestations:** No

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