GHSA-8j6j-4h2c-c65p

Suggest an improvement
Source
https://github.com/advisories/GHSA-8j6j-4h2c-c65p
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-8j6j-4h2c-c65p/GHSA-8j6j-4h2c-c65p.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8j6j-4h2c-c65p
Published
2020-09-03T17:02:52Z
Modified
2020-08-31T18:44:11Z
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.
Database specific
{
    "cwe_ids": [
        "CWE-78"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-08-31T18:44:11Z",
    "nvd_published_at": null,
    "severity": "CRITICAL"
}
References

Affected packages

npm / require-node

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.3.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-8j6j-4h2c-c65p/GHSA-8j6j-4h2c-c65p.json"

npm / require-node

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.0.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-8j6j-4h2c-c65p/GHSA-8j6j-4h2c-c65p.json"