T08 · Insecure Dependencies
- Location
SKILL.md:20- Finding
Unpinned Third-Party Dependencies Create a Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:20-23; also documented inscripts/convert.py:8-10
Vulnerability Type: T08: Insecure Dependencies
Risk Level: MediumVulnerable Code
bash pip install mdnice requests playwright install chromiumThe same installation requirements are repeated in the script:
python Dependencies: pip install mdnice requests playwright install chromiumTechnical Analysis
The installation instructions do not pin exact versions of
mdnice,requests, or Playwright's Chromium distribution. The project also provides no dependency lock file, package hashes, integrity verification, or documented set of tested versions.Consequently, the code installed when the Skill is used can differ from the code that existed when the Skill was audited. Python packages can execute code during installation and at runtime. A compromised package release, dependency account, package index, or transitive dependency could therefore introduce arbitrary behavior without requiring any change to this repository.
The Skill directly uses
mdnice, whilerequestsis not directly imported by the provided script. Installing packages that are not demonstrably needed increases the supply-chain attack surface.Attack Path
- An attacker compromises a listed package, one of its transitive dependencies, or its package-distribution account.
- The attacker publishes a malicious package version that still satisfies the unbounded installation command.
- An Agent or user follows the Skill instructions and runs
pip install mdnice requestsor installs the latest Playwright Chromium distribution. - The malicious package executes installation hooks or malicious runtime code.
- The payload operates with the permissions of the account running the installation or conversion.
Impact Assessment
Successful exploitation could allow arbitrary code execution under th ...[truncated 450 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin every direct dependency to an exact, reviewed version.
- Add a lock file containing all transitive dependencies.
- Require package hashes, for example by using
pip install --require-hashes -r requirements.txt. - Pin and document the tested Playwright and Chromium versions.
- Install packages only from explicitly trusted indexes and disable unintended extra indexes.
- Remove
requestsfrom the installation instructions unless it is a verified runtime dependency. - Run installation and conversion in a sandboxed environment with minimal filesystem and network permissions.
- Add automated dependency vulnerability and integrity scanning to the release process.
