Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTQ5bWctOTRmYy0yZng2
Command Injection in npm-git-publish
All versions of npm-git-publish
are vulnerable to Command Injection. The package fails to sanitize input and passes it directly to an execSync
call, which may allow attackers to execute arbitrary code in the system. The publish
function is vulnerable through the gitRemoteUrl
variable.
Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
Permalink: https://github.com/advisories/GHSA-49mg-94fc-2fx6JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTQ5bWctOTRmYy0yZng2
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 3 years ago
Updated: 9 months ago
Identifiers: GHSA-49mg-94fc-2fx6
References:
- https://hackerone.com/reports/730121
- https://www.npmjs.com/advisories/1458
- https://github.com/advisories/GHSA-49mg-94fc-2fx6
Affected Packages
npm:npm-git-publish
Versions: >= 0.0.0No known fixed version