Command injection in mock2easy
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
This affects all versions 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);
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 |
|---|---|---|---|---|---|
| — | mock2easy | all versions | — | No fix listed | CNA |
| — | mock2easy (npm) | up to 0.0.24 | — | No fix listed | GHSA-g4xj-wcq6-qwx5 |
- mock2easy Vendor— Affected all versions Fixed in — No fix listed CNA
- mock2easy (npm) Vendor— Affected up to 0.0.24 Fixed in — No fix listed GHSA-g4xj-wcq6-qwx5
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mock2easy_project:mock2easy:*:*:*:*:*:node.js:*:* | all versions | Vulnerable | Mock2easy Project |
- cpe:2.3:a:mock2easy_project:mock2easy:*:*:*:*:*:node.js:*:* Versions all versions Vulnerable ·Mock2easy Project
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2020-7697
- 2026-10-03 Alias added: GHSA-g4xj-wcq6-qwx5
References
Sources
- CVE-2020-7697 · CVE Program
- CVE-2020-7697 · NVD
- FIRST EPSS
- GHSA-g4xj-wcq6-qwx5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences