Description
All versions of package morgan-json are vulnerable to Arbitrary Code Execution due to missing sanitization of input passed to the Function constructor.
Remediation
References
https://security.snyk.io/vuln/SNYK-JS-MORGANJSON-2976193
https://github.com/indexzero/morgan-json/blob/3a76010215a4256d41687d082cd66c4f00ea5717/index.js%23L46
Related Vulnerabilities
CVE-2021-4279 Vulnerability in npm package fast-json-patch
CVE-2018-3725 Vulnerability in npm package hekto
CVE-2020-13934 Vulnerability in maven package org.apache.tomcat:tomcat-coyote
CVE-2022-31172 Vulnerability in npm package @openzeppelin/contracts-upgradeable
CVE-2022-21213 Vulnerability in maven package org.webjars.npm:mout