---
canonical: "https://firewall.lpm.dev/npm/@circuitwall/jarela"
markdown: "https://firewall.lpm.dev/npm/@circuitwall/jarela/v/2.1.0.md"
package: "@circuitwall/jarela"
report_status: "published"
title: "@circuitwall/jarela@2.1.0 npm security report"
verdict: "malicious"
version: "2.1.0"
---

# @circuitwall/jarela@2.1.0 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
**Blocked & quarantined** — The proxy receives credentials that can be used in the Gmail OAuth flow.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Credential exfiltration
- **Selected version:** 2.1.0
- **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: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

The source confirms ordinary Gmail authorization and refresh credentials are sent to the package's default hosted proxy. This supports blocking for credential exfiltration.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 94.0%
- **Started:** 2026-10-14T21:39:53.365Z
- **Finished:** 2026-10-14T21:45:49.634Z
- **Download time:** 7461 ms
- **Static scan time:** 37416 ms
- **AI review time:** 311391 ms
- **Total time:** 356269 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:** Gmail OAuth credentials are sent to a publisher-selected Jarela proxy. The source shows this during both OAuth code exchange and refresh-token health checks.

- **Trigger:** A user connects Gmail with the bundled client, or a Gmail health probe refreshes its token.

- **Impact:** The proxy receives credentials that can be used in the Gmail OAuth flow.

- **Evidence paths:** lib/integrations/gmail-oauth.ts, app/api/v1/integrations/gmail/oauth/callback/route.ts, lib/health/probes.ts

- **Review source:** ai\_review

- **Reviewed:** 2026-10-14T21:45:49.634Z

### AI review details

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

- **Mechanism:** The package posts the authorization code and PKCE verifier, or a stored refresh token, to the default Jarela proxy endpoint.

- **Attack narrative:** The bundled Gmail flow selects a Jarela-hosted proxy by default. The OAuth callback passes the authorization code and PKCE verifier to that endpoint, and the Gmail health probe posts stored refresh tokens there as well. The source establishes credential disclosure to a package-selected recipient without a recipient-specific consent boundary.

- **Rationale:** The source confirms ordinary Gmail authorization and refresh credentials are sent to the package's default hosted proxy. This supports blocking for credential exfiltration.

- **Files touched:** lib/integrations/gmail-oauth.ts, app/api/v1/integrations/gmail/oauth/callback/route.ts, lib/health/probes.ts

- **Network endpoints:** https://jarela-oauth-proxy-134669812881.europe-west1.run.app

### Review decision

- **Verdict:** Malicious

- **Confidence:** 94.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The bundled Gmail client uses a Jarela-hosted token proxy by default., The Gmail OAuth callback sends the authorization code and PKCE verifier through that selected endpoint., The Gmail health probe also sends a stored refresh token to the selected endpoint.

## Affected versions and remediation

This report applies to @circuitwall/jarela@2.1.0.

- Avoid installing @circuitwall/jarela@2.1.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall-hint.mjs
```

### 2. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

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

Package declares npm scripts.

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** app/api/v1/update/apply/route.ts
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/app/api/v1/update/apply/route.ts>)

Package source references child process execution.

Public source snippet (untrusted):

```typescript
L19: import { join } from "node:path";
L20: import { spawn } from "node:child_process";
L21: import { NextResponse } from "next/server";
```

### 5. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** scripts/update.mjs
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/scripts/update.mjs>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L166: if (process.platform === "win32") {
L167: console.error(`[jarela]   (admin PowerShell)  npm i -g github:${REPO}#main`);
L168: } else {
```

### 6. High: Eval
- **Category:** Source
- **Confidence:** 80.0%
- **Path:** .next/standalone/node\_modules/@huggingface/transformers/dist/transformers.node.mjs
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/node_modules/%40huggingface/transformers/dist/transformers.node.mjs>)

Package source references dynamic code evaluation.

Public source snippet (untrusted):

```javascript
L9876: ${m}
L9877: }`, n = new Function(Object.keys(h), m)(...Object.values(h)), m = `methodCaller<(${u.map((y) => y.name)}) => ${o.name}>`, Fi(Object.defineProperty(n, "name", { value: m }));
L9878: }
```

### 7. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** browser-extension/agent-overlay.js
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/browser-extension/agent-overlay.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L57: let applyBrand = null;
L58: const brandReady = import(chrome.runtime.getURL("lib/brand.mjs"))
L59: .then((m) => {
```

### 8. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** scripts/prepare-local-embedding-model.mjs
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/scripts/prepare-local-embedding-model.mjs>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L37: "Queries use the `query: ` prefix; indexed passages use the `passage: ` prefix.",
L38: "Source: https://huggingface.co/Xenova/multilingual-e5-small",
L39: "Base model: https://huggingface.co/intfloat/multilingual-e5-small",
```

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

Package source references network APIs.

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

Package source references environment variables.

### 11. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** scripts/service-install.mjs
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/scripts/service-install.mjs>)

Source writes installer persistence such as shell profile or service configuration.

Public source snippet (untrusted):

```javascript
L18: 
L19: import { spawnSync, execFileSync } from "node:child_process";
L20: import { existsSync, mkdirSync, writeFileSync, unlinkSync, rmSync, chmodSync } from "node:fs";
...
L45: for (const k of PROXY_ENV_KEYS) {
L46: const v = process.env[k];
L47: if (v && v.length > 0) out[k] = v;
...
L59: if (env && env.length > 0) {
L60: return env.startsWith("~") ? env.replace(/^~/, homedir()) : env;
L61: }
...
L93: if (!existsSync(kc)) continue;
L94: let stdout;
L95: try {
```

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

Package source references filesystem APIs.

### 13. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** scripts/update.mjs
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/scripts/update.mjs>)

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

Public source snippet (untrusted):

```javascript
L13: import { existsSync, readFileSync } from "node:fs";
L14: import { spawnSync } from "node:child_process";
L15: import { join } from "node:path";
...
L18: const REPO = "CircuitWall/jarela";
L19: const REGISTRY_URL = `https://registry.npmjs.org/${PACKAGE_NAME}/latest`;
L20: const GH_COMMIT_URL = `https://api.github.com/repos/${REPO}/commits/main`;
...
L24: function resolveChannel() {
L25: return (process.env.JARELA_UPDATE_CHANNEL ?? "").trim().toLowerCase() === "main" ? "main" : "stable";
L26: }
```

### 14. Critical: Hardcoded Runtime Data Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** lib/health/probes.ts
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/lib/health/probes.ts>)

Source sends credentials or rich application records to a package-controlled external receiver enabled by default.

Public source snippet (untrusted):

```typescript
L12: import { resolvePackageAuth } from "@/lib/tools/runtime/auth-registry";
L13: import { spawnSync } from "node:child_process";
L14: 
...
L23: import { registerDefaultPackages } from "@/lib/tools/packages/default-packages";
L24: if (process.env.NEXT_PHASE !== "phase-production-build") {
L25: registerDefaultPackages();
...
L106: try {
L107: const res = await fetch(`${auth.url}/rest/api/3/myself`, {
L108: headers: {
L109: Authorization: "Basic " + Buffer.from(`${auth.email}:${auth.apiToken}`).toString("base64"),
L110: Accept: "application/json",
...
L206: try {
```

### 15. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** .next/standalone/node\_modules/next/dist/compiled/@vercel/nft/index.js
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/node_modules/next/dist/compiled/%40vercel/nft/index.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L1: (()=>{var __webpack_modules__={4816:(e,t,s)=>{"use strict";e.exports=t;const r=s(9896);const o=s(6928);const a=s(1825);const c=s(1916);const u=s(7650);const d=s(4434).EventEmitter;...
```

### 16. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** .next/standalone/node\_modules/next/dist/next-devtools/server/launch-editor.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/node_modules/next/dist/next-devtools/server/launch-editor.js%23virtual%3Anormalized%3Around1>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```text
L50: const _picocolors = require("../../lib/picocolors");
L51: const _child_process = /*#__PURE__*/ _interop_require_default._(require("child_process"));
L52: const _fs = /*#__PURE__*/ _interop_require_default._(require("fs"));
...
L177: // Explicit config always wins
L178: if (process.env.REACT_EDITOR) {
L179: return _shellquote.default.parse(process.env.REACT_EDITOR);
...
L184: try {
L185: if (process.platform === "darwin") {
L186: const output = _child_process.default.execSync("ps x").toString();
...
L259: //
L260: // https://developer.apple.[redacted]ASLR_classes.html#//apple_ref/doc/uid/TP40000983-CH1g-BBCIAHJF:~:...
L261: return input.replaceAll(/[\\"]/g, (original)=>`\\${original}`);\n}\nfunction launchEditor(fileName, line1, column1) {\n    if (!_fs.default.existsSync(fileName)) {\
```

### 17. Critical: Remote Response Code Execution
- **Category:** Source
- **Confidence:** 98.0%
- **Path:** .next/standalone/node\_modules/next/dist/compiled/jest-worker/threadChild.js
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/node_modules/next/dist/compiled/jest-worker/threadChild.js>)

Source passes code obtained from a remote response into a dynamic execution sink.

Public source snippet (untrusted):

```javascript
L1: (()=>{"use strict";var __webpack_modules__={994:(e,r)=>{Object.defineProperty(r,"__esModule",{value:true});r.PARENT_MESSAGE_SETUP_ERROR=r.PARENT_MESSAGE_OK=r.PARENT_MESSAGE_CUSTOM=...
```

### 18. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** scripts/service-install.mjs
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/scripts/service-install.mjs>)

A manifest entrypoint or package-local install chain reaches persistence behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.bin -> scripts/jarela-bin.mjs -> scripts/service-install.mjs
L18: 
L19: import { spawnSync, execFileSync } from "node:child_process";
L20: import { existsSync, mkdirSync, writeFileSync, unlinkSync, rmSync, chmodSync } from "node:fs";
...
L45: for (const k of PROXY_ENV_KEYS) {
L46: const v = process.env[k];
L47: if (v && v.length > 0) out[k] = v;
...
L59: if (env && env.length > 0) {
L60: return env.startsWith("~") ? env.replace(/^~/, homedir()) : env;
L61: }
...
L93: if (!existsSync(kc)) continue;
L94: let stdout;
L95: try {
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 21. Medium: Ships Native Binary
- **Category:** Artifact Inventory
- **Confidence:** 75.0%
- **Path:** .next/standalone/node\_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.18.7
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/node_modules/%40img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.18.7>)

Package ships native binary artifacts.

Public source snippet (untrusted):

```text
path = .next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.18.7
kind = native_binary
sizeBytes = 18699288
magicHex = [redacted]
```

### 22. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** scripts/installed-launcher.ps1
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/scripts/installed-launcher.ps1>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```text
path = scripts/installed-launcher.ps1
kind = build_helper
sizeBytes = 10118
magicHex = [redacted]
```

### 23. High: Payload In Excluded Dir
- **Category:** Artifact Inventory
- **Confidence:** 85.0%
- **Path:** .next/standalone/.next/server/chunks/1427.js
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/.next/server/chunks/1427.js>)

Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.

Public source snippet (untrusted):

```javascript
path = .next/standalone/.next/server/chunks/1427.js
kind = payload_in_excluded_dir
sizeBytes = 6089618
magicHex = [redacted]
```

### 24. Medium: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** .next/standalone/.next/server/chunks/1427.js
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/.next/server/chunks/1427.js>)

Package contains source files above the normal full-analysis size ceiling.

Public source snippet (untrusted):

```javascript
path = .next/standalone/.next/server/chunks/1427.js
kind = oversized_source_file
sizeBytes = 6089618
magicHex = [redacted]
```

### 25. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 26. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** .next/standalone/node\_modules/@keyv/serialize/dist/index.js
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/node_modules/%40keyv/serialize/dist/index.js>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 86
```

### 27. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** scripts/update.mjs
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/scripts/update.mjs>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @circuitwall/jarela@1.41.5
matchedPath = scripts/update.mjs
matchedIdentity = npm:QGNpcmN1aXR3YWxsL2phcmVsYQ:1.41.5
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 28. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** .next/standalone/node\_modules/@langchain/core/dist/utils/async\_caller.cjs
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/node_modules/%40langchain/core/dist/utils/async_caller.cjs>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @circuitwall/jarela@1.41.5
matchedPath = .next/standalone/node_modules/@langchain/core/dist/utils/async_caller.cjs
matchedIdentity = npm:QGNpcmN1aXR3YWxsL2phcmVsYQ:1.41.5
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 29. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** .next/standalone/node\_modules/@langchain/core/dist/utils/async\_caller.js
- **Public source:** [View source](<https://unpkg.com/@circuitwall/jarela@2.1.0/.next/standalone/node_modules/%40langchain/core/dist/utils/async_caller.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @circuitwall/jarela@1.41.5
matchedPath = .next/standalone/node_modules/@langchain/core/dist/utils/async_caller.js
matchedIdentity = npm:QGNpcmN1aXR3YWxsL2phcmVsYQ:1.41.5
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall, prepare, prepublishOnly
- **Dependencies:** 35
- **Optional dependencies:** 1
- **Peer dependencies:** 0
- **Development dependencies:** 20
- **Published dependency-graph edges:** 36

### Published dependency entries
- @anthropic-ai/sdk ^0.128.0 (Dependency)
- @huggingface/transformers ^4.3.1 (Dependency)
- @langchain/cohere ^1.1.0 (Dependency)
- @langchain/core ^1.2.12 (Dependency)
- @langchain/deepseek ^1.1.13 (Dependency)
- @langchain/google-genai ^2.3.2 (Dependency)
- @langchain/langgraph ^1.4.17 (Dependency)
- @langchain/langgraph-checkpoint ^1.1.5 (Dependency)
- @langchain/mcp-adapters ^1.1.4 (Dependency)
- @tailwindcss/postcss ^4.3.3 (Dependency)
- @whiskeysockets/baileys ^7.0.0-rc14 (Dependency)
- autoprefixer ^10.6.1 (Dependency)
- cron-parser ^5.10.1 (Dependency)
- cross-spawn ^7.0.6 (Dependency)
- dompurify ^3.4.16 (Dependency)
- highlight.js ^11.12.0 (Dependency)
- lucide-react ^1.47.0 (Dependency)
- mermaid ^11.17.2 (Dependency)
- next ^16.3.6 (Dependency)
- openai ^7.22.0 (Dependency)
- p-queue ^9.3.3 (Dependency)
- postcss ^8.5.28 (Dependency)
- qrcode ^1.5.4 (Dependency)
- react ^19.3.0 (Dependency)
- react-dom ^19.3.0 (Dependency)
- react-markdown ^10.1.0 (Dependency)
- rehype-highlight ^7.0.2 (Dependency)
- rehype-raw ^7.0.0 (Dependency)
- rehype-sanitize ^6.0.0 (Dependency)
- remark-gfm ^4.0.1 (Dependency)
- simple-icons ^16.32.0 (Dependency)
- tailwindcss ^4.3.3 (Dependency)
- undici ^8.11.2 (Dependency)
- ws ^8.21.3 (Dependency)
- zod ^4.6.5 (Dependency)
- @napi-rs/keyring ^2.1.0 (OptionalDependency)

## Package metadata
- **Package:** @circuitwall/jarela
- **Ecosystem:** npm
- **Version:** 2.1.0
- **License:** Apache-2.0
- **Version published:** 2026-10-14T21:31:00.439Z
- **Package first seen:** 2026-08-04T09:27:37.488Z
- **Package last seen:** 2026-11-23T16:26:11.287Z
- **Known versions:** 63
- **Latest version:** 3.8.0
- **Appeal under review:** No
- **Description:** Jarela — local chat interface for LangGraph agents (multi-provider, single-process, SQLite-backed).
- **Author:** Andrew Ge Wu
- **Keywords:** langgraph, llm, chat, agents, mcp, anthropic, openai, google-genai, cohere, deepseek, self-hosted, local-first
- **Runtime engines:** node: \>=22
- **Artifact files:** 6101
- **Artifact unpacked size:** 321,338,189 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@circuitwall/jarela/v/2.1.0>)
- [Repository](<https://github.com/CircuitWall/jarela.git>)
- [Homepage](<https://github.com/CircuitWall/jarela#readme>)
- [Issues](<https://github.com/CircuitWall/jarela/issues>)
