GHSA-g4xj-wcq6-qwx5

Suggest an improvement
Source
https://github.com/advisories/GHSA-g4xj-wcq6-qwx5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-g4xj-wcq6-qwx5/GHSA-g4xj-wcq6-qwx5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g4xj-wcq6-qwx5
Aliases
  • CVE-2020-7697
Published
2021-05-06T18:25:58Z
Modified
2023-11-08T04:04:05Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Code injection in mock2easy
Details

This affects all versions up to and including version 0.0.24 of package mock2easy. a malicious user could inject commands through the _data variable:

Affected Area

require('../server/getJsonByCurl')(mock2easy, function(error, stdout) {
    if (error) {
        return res.json(500, error);
    }
    res.json(JSON.parse(stdout));
}, '', _data.interfaceUrl, query, _data.cookie, _data.interfaceType);```
Database specific
{
    "cwe_ids":  [
        "CWE-77"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-05-06T18:23:33Z",
    "nvd_published_at":  "2020-07-29T13:15:00Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / mock2easy

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.0.24

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-g4xj-wcq6-qwx5/GHSA-g4xj-wcq6-qwx5.json"