T08 · Insecure Dependencies
- Location
SKILL.md:55- Finding
Unpinned npm Package Is Downloaded and Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:55-92; supporting version inconsistency atREADME.md:5-7
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: MediumVulnerable Code
SKILL.md:53-92:bash ### Check System ```bash npx ai-pdf-builder checkGenerate via CLI
bash # From markdown file npx ai-pdf-builder generate whitepaper ./content.md -o output.pdf # With company name npx ai-pdf-builder generate whitepaper ./content.md -o output.pdf --company "Acme Corp" # Document types: whitepaper, memo, agreement, termsheet, safe, nda, report, proposalAI Content Generation (New!)
bash # Generate a whitepaper from a prompt npx ai-pdf-builder ai whitepaper "Write a whitepaper about decentralized identity" -o identity.pdf # Generate with company branding npx ai-pdf-builder ai whitepaper "AI in healthcare" -o healthcare.pdf --company "HealthTech Inc" # Generate other document types npx ai-pdf-builder ai termsheet "Series A for a fintech startup" -o termsheet.pdf npx ai-pdf-builder ai memo "Q4 strategy update" -o memo.pdf --company "TechCorp"Enhance Existing Content (New!)
bash # Improve and expand existing markdown npx ai-pdf-builder enhance ./draft.md -o enhanced.md # Enhance and convert to PDF in one step npx ai-pdf-builder enhance ./draft.md -o enhanced.pdf --pdfSummarize Documents (New!)
bash # Generate executive summary npx ai-pdf-builder summarize ./long-document.md -o summary.md # Summarize as PDF npx ai-pdf-builder summarize ./report.pdf -o summary.pdf --pdftext `README.md:5-7` documents a particular release but does not enforce it in the commands: ```markdown ## Version Uses `ai-pdf-builder@0.4.0` with premium templates.Technical Analysis
All documented CLI commands invoke
npx ai-pdf-builderwithout specifying a package version. If the pa ...[truncated 2336 chars]- Remediation
View remediation
Remediation Suggestions
-
Pin every invocation to a specific reviewed release:
bash npx --yes ai-pdf-builder@0.4.0 check npx --yes ai-pdf-builder@0.4.0 generate whitepaper ./content.md -o output.pdf npx --yes ai-pdf-builder@0.4.0 summarize ./report.pdf -o summary.pdf --pdf -
Prefer declaring the package as a local project dependency and committing a lockfile with npm integrity metadata:
bash npm install --save-exact ai-pdf-builder@0.4.0 npm ci npx --no-install ai-pdf-builder check -
Review the pinned package, its lifecycle scripts, and its complete transitive dependency tree before approving it for sensitive document processing.
-
Reconcile the version information in
README.mdandSKILL.md, and explicitly distinguish the Skill version from the npm package version. -
Run document generation with least privilege in an isolated environment that exposes only required input and output directories.
-
Avoid exposing unrelated credentials to the process. Provide
ANTHROPIC_API_KEYonly for commands that require it and use a narrowly scoped key where supported. -
Apply outbound network restrictions when local PDF generation does not require network access, reducing the impact of a compromised dependency.
-
