T08 · Insecure Dependencies
- Location
README.md:42- Finding
Unpinned Package Execution in Installation Command
- Content
View full analysis
Vulnerability Details
File Location:
README.md, line 42
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code
bash npx skills add Cognitic-Labs/geoskills --skill geo-fix-schemaTechnical Analysis
The documented installation procedure invokes the
skillsnpm package throughnpxwithout specifying an exact package version or integrity value. Depending on the local npm cache and configuration,npxmay retrieve the current package release from the configured registry and execute its code.The referenced
Cognitic-Labs/geoskillssource is likewise not pinned to an immutable commit or verified release in this command. Consequently, the effective installation code and Skill content can change after this project has been audited. This creates a supply-chain trust boundary in which compromise of the npm package, registry resolution, maintainer account, or upstream repository could introduce code not present in the reviewed artifact.No evidence was found that the currently reviewed files contain a malicious payload. The vulnerability is the mutable and unverified execution path exposed by the installation documentation.
Attack Path
- An attacker compromises the publisher account, upstream package, registry resolution path, or referenced Skill repository.
- The attacker publishes or inserts a malicious version under the same mutable package or repository identity.
- A user follows the documented
npx skills addcommand. npxretrieves and executes the unpinned installer package.- The compromised installer or retrieved Skill performs attacker-controlled actions with the privileges of the user running the command.
Impact Assessment
Successful exploitation could permit arbitrary code execution under the installing user's account. The accessible scope could include files writable by that user, project source code, environment variabl ...[truncated 395 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the
skillsnpm package to an exact, reviewed version rather than allowingnpxto resolve the latest release:bash npx skills@<reviewed-exact-version> add Cognitic-Labs/geoskills --skill geo-fix-schema - Pin the Skill source to an immutable commit digest or cryptographically verified release if the installer supports that capability.
- Publish and verify package integrity information, release signatures, or checksums before execution.
- Use a lockfile or equivalent dependency policy to prevent unexpected version changes.
- Recommend installing in a sandbox or least-privileged environment without production credentials.
- Document the exact package version and source revision reviewed for each Skill release.
- Avoid instructing users to add
sudoor otherwise elevate the installation command.
- Pin the
