Advisory

GHSA-8j6j-4h2c-c65p

Also known as: None

Summary

Arbitrary Code Execution in require-node

Details

Versions of require-node prior to 1.3.4 for 1.x and 2.0.4 for 2.x are vulnerable to Arbitrary Code Execution. The package fails to sanitize requests to the require-node endpoint, allowing attackers to execute arbitrary code in the server through the injection of OS commands in the request body.

Recommendation

  • If you are using 1.x, upgrade to version 1.3.4 or later.
  • If you are using 2.x, upgrade to version 2.0.4 or later.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2020-09-03 17:02 UTC
Modified
2020-08-31 18:44 UTC

Affected packages and fixes

require-node

npm · All systems

Affected

  • introduced 0, fixed 1.3.4 (semver)

Fixed versions

1.3.4

Fix

require-node

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.0.4 (semver)

Fixed versions

2.0.4

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