CVE-2022-25921
CRITICAL 9.8CVSS 3.1morgan-json vulnerable to Arbitrary Code Execution
All versions of package morgan-json are vulnerable to Arbitrary Code Execution due to missing sanitization of input passed to the Function constructor.
- Published
- 29 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-fwv4-6mxc-x5h3
- Sources
- NVDJSONOSV GHSA-fwv4-6mxc-x5h3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | morgan-json_project | morgan-jsoncpe:2.3:a:morgan-json_project:morgan-json:*:*:*:*:*:node.js:*:* |
all versions | |
| OSV | npm | morgan-json | <= 1.1.0 |
References
- https://github.com/indexzero/morgan-json/blob/3a76010215a4256d41687d082cd66c4f00ea5717/index.js%23L46 · Broken Link, WEB
- https://security.snyk.io/vuln/SNYK-JS-MORGANJSON-2976193 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25921 · ADVISORY
- https://github.com/indexzero/morgan-json · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 29 Aug 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Aug 2022)