registry  /  @amitdevx/md2pdf  /  0.2.4

@amitdevx/md2pdf@0.2.4

Production-quality Markdown to PDF rendering engine.

Static Scan Results

scanned 5d ago · by rust-scanner

Static analysis flagged 12 finding(s) at 72.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.

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessEnvironmentVarsFilesystemShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 5 file(s), 186 KB of source, external domains: fonts.googleapis.com, fonts.gstatic.com, playwright.dev

Source & flagged code

4 flagged · loading source
package.jsonView file
scripts.postinstall = node scripts/install-browser.mjs
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
dist/cli/index.jsView file
20import pc3 from 'picocolors'; L21: import { execSync } from 'child_process'; L22:
High
Child Process

Package source references child process execution.

dist/cli/index.jsView on unpkg · L20
1321spinner = ora("Installing Chromium dependencies...").start(); L1322: execSync("npx playwright install chromium", { stdio: "inherit" }); L1323: if (process.platform === "linux") {
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

dist/cli/index.jsView on unpkg · L1321
dist/index.jsView file
317const context = { L318: platform: process.platform, L319: ...contextBase ... L583: :root { L584: --md2pdf-font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; L585: --md2pdf-font-family-heading: inherit; ... L902: <!-- TODO(v0.6.0): Bundle fonts locally instead of CDN to support offline/air-gapped environments --> L903: <link rel="preconnect" href="https://fonts.googleapis.com"> L904: <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> ... L932: if (url.startsWith("file://")) { L933: const allowedDir = "file://" + process.cwd().replace(/\\/g, "/"); L934: if (!url.startsWith(allowedDir)) {
High
Cloud Metadata Access

Source reaches cloud instance metadata or link-local credential endpoints.

dist/index.jsView on unpkg · L317

Findings

5 High2 Medium5 Low
HighInstall Time Lifecycle Scriptspackage.json
HighChild Processdist/cli/index.js
HighShell
HighCloud Metadata Accessdist/index.js
HighRuntime Package Installdist/cli/index.js
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings