GHSA-49mg-94fc-2fx6
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.
What each source reports
GitHub AdvisoriesNo score
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.
- Record
GHSA-49mg-94fc-2fx6- Weakness
- CWE-77
- Updated
- 2026-11-02
OSVNo score
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.
- Record
GHSA-49mg-94fc-2fx6- Weakness
- CWE-77
- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
npm-git-publishnpm | 0.0.0 and later | None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
GHSA-49mg-94fc-2fx6 is a vulnerability with no CVSS score yet in npm-git-publish, published September 4, 2020. No source lists public exploit code. No source names a fixed version.