Advisory

GHSA-qjg4-w4c6-f6c6

Also known as: CVE-2020-4059

Summary

Command injection in mversion

Details

Impact
This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input.

Patches
Patched by version 2.0.0. Previous releases are deprecated in npm.

Workarounds
Make sure to escape git commit messages when using the commitMessage option for the update function.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-06-18 19:23 UTC
Modified
2026-09-10 03:48 UTC

Affected packages and fixes

mversion

npm · All systems

Affected

  • introduced 0, fixed 2.0.0 (semver)

Fixed versions

2.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences