T08 · Insecure Dependencies
- Location
SKILL.md:60- Finding
Unpinned Global Package Installation from Mutable Third-Party Sources
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 60-61
Vulnerability Type: Unpinned third-party dependencies and globally installed tooling
Risk Level: MediumVulnerable Code
markdown - Installed via npm: `npm install -g @llamaindex/liteparse` - Brew formula exists (`brew tap run-llama/liteparse`) but requires current macOS CLT — use npm as primary install path on this machineTechnical Analysis
The documented npm command installs the latest available version of
@llamaindex/liteparseglobally without pinning a reviewed version or verifying package integrity. The Homebrew alternative also adds a mutable external tap without pinning or verifying its revision.Package installation can execute package lifecycle scripts and place executable files in global command paths. Consequently, compromise of the package publisher, npm account, registry distribution channel, or Homebrew tap could cause attacker-controlled code to execute during installation or whenever the
litexecutable is subsequently invoked.The reviewed project does not itself contain malicious executable code, and there is no evidence that the named package or tap is currently compromised. The vulnerability is the unsafe, mutable dependency installation process.
Attack Path
- An attacker compromises the npm publisher account, package release process, registry entry, or external Homebrew tap.
- The attacker publishes a malicious release or modifies the package formula referenced by the documented installation command.
- An agent or user follows the Skill instructions and installs the dependency without a pinned version or integrity verification.
- Malicious lifecycle code may execute during installation, or a malicious
litbinary is added to the global executable path. - The compromised binary is later invoked to process user documents.
- The malicious code operates with the privileges of the installing or inv ...[truncated 757 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin LiteParse to a specifically reviewed version, for example:
bash npm install --global @llamaindex/liteparse@<reviewed-version> - Record and verify the package integrity hash or signed provenance before installation.
- Prefer a project-local, lockfile-backed installation over a global installation:
bash npm install --save-exact @llamaindex/liteparse@<reviewed-version> - Run the parser through the local package executable and preserve a reviewed lockfile with integrity metadata.
- Disable npm lifecycle scripts during installation where compatible, then explicitly review any required installation steps.
- Execute document parsing in a sandbox or container with restricted filesystem access, no unnecessary credentials, and network access disabled after verified dependencies are installed.
- If the Homebrew alternative is retained, pin and verify the tap revision and formula rather than trusting the tap's mutable latest state.
- Establish a controlled update process that reviews release changes before advancing the pinned dependency version.
- Pin LiteParse to a specifically reviewed version, for example:
