Command Injection in npm-git-publish
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Code execution
- Confidentiality · integrity · availability
- —
- Fix status
- No fix listed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-77.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | npm-git-publish (npm) | 0.0.0 and later | — | No fix listed | GHSA-49mg-94fc-2fx6 |
- npm-git-publish (npm) Vendor— Affected 0.0.0 and later Fixed in — No fix listed GHSA-49mg-94fc-2fx6
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-03 Threatist record created from GHSA-49mg-94fc-2fx6
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences