graphic-ebook

Warn

Audited by Socket on May 8, 2026

1 alert found:

Anomaly
AnomalyLOW
scripts/export-pdf.sh

This code is a utility for deterministic PDF export using a local server and Playwright. There is no direct evidence of intentional malware in the fragment (no exfiltration, credential theft, or backdoor logic). The main security concerns are (1) supply-chain exposure from runtime npm installation and Chromium downloads without pinned/integrity-verified versions, and (2) the local static server’s file path resolution that lacks strong confinement to SERVE_DIR, which could allow path traversal-like reads if the browser requests crafted URLs (or if untrusted HTML manipulates requests). Rendering untrusted HTML also increases risk because any embedded JS will execute in the browser context during export.

Confidence: 67%Severity: 58%
Audit Metadata
Analyzed At
May 8, 2026, 03:10 PM
Package URL
pkg:socket/skills-sh/Varnan-Tech%2Fopendirectory%2Fgraphic-ebook%2F@3d3e369f64ec22c1766549486024f7d0c97e5cec
Security Audit — socket — graphic-ebook