preview-md

Warn

Audited by Socket on May 16, 2026

1 alert found:

Security
SecurityMEDIUM
scripts/preview-md.mjs

No clear indication of intentional malware (low malware likelihood), but the module presents substantial security risk for local usage with untrusted input. It enables arbitrary local file reads via unprotected endpoints (/api/content and /api/file) using user-supplied paths, and it injects Markdown-derived HTML into the DOM via marked.parse + innerHTML without explicit sanitization, creating potential XSS/injection risk. Exec(open/xdg-open) is an additional elevated sink, though likely low impact in typical trusted local use.

Confidence: 72%Severity: 82%
Audit Metadata
Analyzed At
May 16, 2026, 04:38 AM
Package URL
pkg:socket/skills-sh/312362115%2Fclaude%2Fpreview-md%2F@fa4520174b9ee930aa1abe14495ff4cfd1b76ddf