---
canonical: "https://firewall.lpm.dev/npm/drafted/v/1.18.1"
markdown: "https://firewall.lpm.dev/npm/drafted/v/1.18.1.md"
package: "drafted"
report_status: "published"
title: "drafted@1.18.1 npm security report"
verdict: "clean"
version: "1.18.1"
---

# drafted@1.18.1 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
**Allowed — no malicious behavior detected** — 10 low-signal patterns reviewed and cleared.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 1.18.1
- **Selected version is latest:** No
- **Analysis source:** Static scan results (rust-scanner)

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.

Static analysis completed at 93.0% confidence. No malicious behavior was detected; 10 low-signal patterns were surfaced and cleared.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 93.0%
- **Started:** 2026-09-16T04:07:30.491Z
- **Finished:** 2026-09-16T04:07:31.881Z
- **Download time:** 759 ms
- **Static scan time:** 631 ms
- **AI review time:** Not available
- **Total time:** 1390 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

No additional public attack-surface or AI-review details are available.

## Affected versions and remediation

This report applies to drafted@1.18.1.

- No action is needed for drafted@1.18.1. Pin the version in your lockfile and check new releases as they are scanned.

## Public findings

These are automated scan signals. The review checked each one and found no malicious behavior, so all of them are cleared.

### 1. High: Child Process (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** mcp/server.mjs
- **Public source:** [View source](<https://unpkg.com/drafted@1.18.1/mcp/server.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L10: import { StdioServerTransport } from '@[redacted].js';
L11: import { execFile } from 'child_process';
L12: import { createHash } from 'node:crypto';
```

### 2. High: Shell (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** mcp/server.mjs
- **Public source:** [View source](<https://unpkg.com/drafted@1.18.1/mcp/server.mjs>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L3381: const manualCommand = platform() === 'win32'
L3382: ? `$tmp = Join-Path $env:TEMP "drafted-install.ps1"; Invoke-WebRequest -UseBasicParsing "${server}/install.ps1" -OutFile $tmp; powershell -NoProfile -ExecutionPolicy Bypass -File $...
L3383: : `tmp=$(mktemp); curl -fsSL ${server}/install.sh -o "$tmp" && bash "$tmp"`;
```

### 3. Medium: Network (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 4. Medium: Environment Vars (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 5. Low: Filesystem (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 6. High: Same File Env Network Execution (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** mcp/server.mjs
- **Public source:** [View source](<https://unpkg.com/drafted@1.18.1/mcp/server.mjs>)

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

Public source snippet (untrusted):

```javascript
L1949: try {
L1950: const { spawn } = await import('child_process');
L1951: // If the app isn't running, the fresh primary instance honors DRAFTED_OPEN_LOGIN=1 (env var)
...
L1960: // DRAFTED_OPEN_LOGIN=1 makes a fresh primary instance open sign-in on boot. The app's
L1961: // base_url() reads DRAFTED_DESKTOP_URL (default https://drafted.live) — pass the server
L1962: // this MCP is bound to, or a local install's sign-in window would target production and
L1963: // the cookie→auth.json bridge would write the production file, never DRAFTED_AUTH_FILE.
L1964: env: { ...process.env, DRAFTED_OPEN_LOGIN: '1', DRAFTED_DESKTOP_URL: getServerUrl() },
L1965: });
```

### 7. High: External Ai Agent Control Surface Mutation (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** cli/drafted.mjs
- **Public source:** [View source](<https://unpkg.com/drafted@1.18.1/cli/drafted.mjs>)

Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.

Public source snippet (untrusted):

```javascript
Runtime or CLI code links a write operation to an explicit external AI-agent control path:
jsonout(false, 'asset-get', `asset not found: ${assetpath}`);
      console.error(`❌ asset not found: ${assetpath}`);
      process.exit(1);
    }
    jsonout(true, 'asset-get', { asset });
    console.log(asset.path);
    console.log(`  type: ${asset.contenttype || 'unknown'}`);
    console.log(`  size: ${asset.size != null ? `${asset.size} bytes` : 'unknown'}`);
    if (asset.frameid) console.log(`  frame: ${asset.frameid}`);
  });

program
  .command('remove <id>')
  .description('(deprecated) use mcp tools: rm')
  .action(() => {
    console.log('the `remove` command has been removed.');
    console.log('use the drafted mcp tools (rm) or delete /api/fs/{path} instead.');
    process.exit(0);
  })
```

### 8. Low: High Entropy Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 9. Low: Url Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 10. High: Previous Version Dangerous Delta (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** cli/drafted.mjs
- **Public source:** [View source](<https://unpkg.com/drafted@1.18.1/cli/drafted.mjs>)

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 = drafted@1.19.47
matchedIdentity = npm:ZHJhZnRlZA:1.19.47
similarity = 0.500
summary = stored previous version shares package body but lacks this dangerous source file
```

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

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

### Published dependency entries
- @modelcontextprotocol/sdk ^1.27.1 (Dependency)
- commander ^11.1.0 (Dependency)
- qrcode-terminal ^0.12.0 (Dependency)
- ws ^8.16.0 (Dependency)
- zod ^4.3.6 (Dependency)

## Package metadata
- **Package:** drafted
- **Ecosystem:** npm
- **Version:** 1.18.1
- **License:** MIT
- **Version published:** 2026-08-29T05:27:31.654Z
- **Package first seen:** 2026-08-06T02:23:50.423Z
- **Package last seen:** 2026-11-22T09:00:54.909Z
- **Known versions:** 110
- **Latest version:** 1.26.4
- **Appeal under review:** No
- **Description:** Shared surface for AI-human collaboration — MCP server and CLI
- **Author:** ddfourtwo
- **Maintainers:** ddfourtwo
- **Keywords:** drafted, design, mcp, claude, ai, canvas
- **Artifact files:** 7
- **Artifact unpacked size:** 315,184 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/drafted/v/1.18.1>)
- [Repository](<https://github.com/ddfourtwo/drafted>)
- [Homepage](<https://github.com/ddfourtwo/drafted#readme>)
- [Issues](<https://github.com/ddfourtwo/drafted/issues>)
