# CVE-2022-25921: Arbitrary Code Execution

- Severity: High 8.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.47%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-29T05:05:15.275Z
- Modified: 2026-06-17T04:34:29.753Z
- Also known as: GHSA-fwv4-6mxc-x5h3
- Weaknesses: CWE-94
- Assigned by: snyk

## Description

All versions of package morgan-json are vulnerable to Arbitrary Code Execution due to missing sanitization of input passed to the Function constructor.

(As written by CVE List.)

## Affected

- morgan-json: before unspecified
- morgan-json (npm): up to 1.1.0
- morgan-json_project morgan-json: no versions given

## Every score

- snyk: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-MORGANJSON-2976193> (exploit, third-party-advisory, web)
- <https://github.com/indexzero/morgan-json/blob/3a76010215a4256d41687d082cd66c4f00ea5717/index.js%23L46> (broken-link, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25921> (advisory)
- <https://github.com/indexzero/morgan-json> (package)

## Sources

- CVE List: [CVE-2022-25921](https://www.cve.org/CVERecord?id=CVE-2022-25921), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-fwv4-6mxc-x5h3](https://github.com/advisories/GHSA-fwv4-6mxc-x5h3), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-25921](https://nvd.nist.gov/vuln/detail/CVE-2022-25921), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25921 · Whole record: https://cve.day/CVE-2022-25921.json · Rebuilt by cve.day 2026-11-25T22:58:14.518Z
