pdf

Warn

Audited by Socket on Jun 19, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
scripts/html_to_pdf.js

No clear evidence of intentionally malicious behavior (no credential access, no reverse shell, no obvious data exfiltration logic) in this module itself. However, it has meaningful security risks: it loads attacker-influenced local HTML into a full Chromium context via file:// (allowing embedded scripts and external resources to execute/request), and it conditionally fetches and executes remote JavaScript from a CDN when the local Paged.js polyfill is missing (supply-chain/execution risk). Additionally, it logs document-derived metrics and writes output to a user-specified path. If used with untrusted HTML/CSS or in environments where the CDN fallback can trigger, it should be treated as a security alert and run with strong isolation.

Confidence: 66%Severity: 67%
AnomalyLOW
routes/latex.md

No explicit malicious payload is demonstrated in this fragment, but it contains a critical supply-chain trust weakness (`curl ... | sh` for installing Tectonic) and an inherently high-risk operation (compiling user-controlled LaTeX) without providing verifiable sandboxing/containment controls for the wrapper/engine. Treat as an elevated security-risk component requiring pinned/verified installers, controlled dependency fetching, and strong isolation for TeX compilation (network/file restrictions, shell-escape policy, and safe working-directory constraints).

Confidence: 60%Severity: 68%
Audit Metadata
Analyzed At
Jun 19, 2026, 01:45 AM
Package URL
pkg:socket/skills-sh/haomingz%2Fkimi-skills%2Fpdf%2F@5f48f421e36d9e7cfbbbdfb4f6411206241865d36b9448e4fa5db220fb700e8b
Security Audit — socket — pdf