registry  /  drafted  /  1.14.8

drafted@1.14.8

⚠ Under review

Drafted — visual thinking surface for humans and AI agents. Renders HTML, markdown, images, and code as frames on a zoomable canvas, with MCP tools for AI agents and real-time sync for humans.

Static Scan Results

scanned 1h ago · by rust-scanner

Static analysis flagged 15 finding(s) at 93.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetworkShellWebSocket
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 12 file(s), 374 KB of source, external domains: drafted.live, fonts.googleapis.com, fonts.gstatic.com

Source & flagged code

7 flagged · loading source
mcp/server.mjsView file
10import { StdioServerTransport } from '@[redacted].js'; L11: import { execFile } from 'child_process'; L12: import { createHash } from 'node:crypto';
High
Child Process

Package source references child process execution.

mcp/server.mjsView on unpkg · L10
2406const manualCommand = platform() === 'win32' L2407: ? `$tmp = Join-Path $env:TEMP "drafted-install.ps1"; Invoke-WebRequest -UseBasicParsing "${server}/install.ps1" -OutFile $tmp; powershell -NoProfile -ExecutionPolicy Bypass -File $... L2408: : `tmp=$(mktemp); curl -fsSL ${server}/install.sh -o "$tmp" && bash "$tmp"`;
High
Shell

Package source references shell execution.

mcp/server.mjsView on unpkg · L2406
36try { L37: return await import('../server/lib/umami.mjs'); L38: } catch {
Medium
Dynamic Require

Package source references dynamic require/import behavior.

mcp/server.mjsView on unpkg · L36
cli/drafted.mjsView file
matchType = previous_version_dangerous_delta matchedPackage = drafted@1.14.2 matchedIdentity = npm:ZHJhZnRlZA:1.14.2 similarity = 0.800 summary = stored previous version shares package body but lacks this dangerous source file
Critical
Previous Version Dangerous Delta

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

cli/drafted.mjsView on unpkg
164function getServerUrl() { L165: if (process.env.DRAFTED_SERVER) { L166: return process.env.DRAFTED_SERVER.replace(/\/$/, ''); ... L171: if (fromConfig) return String(fromConfig).replace(/\/$/, ''); L172: return `http://localhost:${process.env.DRAFTED_PORT || DEFAULT_PORT}`; L173: } ... L177: if (platform() === 'win32') { L178: const script = `$tmp = Join-Path $env:TEMP "drafted-install.ps1"; Invoke-WebRequest -UseBasicParsing "${server}/install.ps1" -OutFile $tmp; powershell -NoProfile -ExecutionPolicy B... L179: return {
High
Same File Env Network Execution

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

cli/drafted.mjsView on unpkg · L164
590const instrumentPath = join(__dirname, '../server/instrument.mjs'); L591: // A global `npm install -g drafted` only ships the CLI/MCP client (see L592: // package.json "files") — the Express server and its src/db, src/auth, ... L604: const outLog = openSync(join(DEFAULT_STATE_DIR, 'server.log'), 'w'); L605: const child = spawn(tsxPath, ['--import', instrumentPath, serverPath], { L606: detached: true,
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

cli/drafted.mjsView on unpkg · L590
install-mcp.shView file
path = install-mcp.sh kind = build_helper sizeBytes = 53879 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

install-mcp.shView on unpkg

Findings

1 Critical4 High5 Medium5 Low
CriticalPrevious Version Dangerous Deltacli/drafted.mjs
HighChild Processmcp/server.mjs
HighShellmcp/server.mjs
HighSame File Env Network Executioncli/drafted.mjs
HighRuntime Package Installcli/drafted.mjs
MediumDynamic Requiremcp/server.mjs
MediumNetwork
MediumEnvironment Vars
MediumShips Build Helperinstall-mcp.sh
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings