CRITICAL9.8
GHSA-gwg9-rgvj-4h5j
Code Injection in morgan
Quick fix
GHSA-gwg9-rgvj-4h5j — morgan: upgrade to the fixed version with the command below.
npm install morgan@1.9.1Details
Verisons of `morgan` before 1.9.1 are vulnerable to code injection when user input is allowed into the filter or combined with a prototype pollution attack.
## Recommendation
Update to version 1.9.1 or later.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-5413[ADVISORY]
- https://hackerone.com/reports/390881[WEB]
- https://github.com/advisories/GHSA-gwg9-rgvj-4h5j[ADVISORY]
- https://github.com/nodejs/security-wg/blob/master/vuln/npm/473.json[WEB]
- https://lists.apache.org/thread.html/r8ba4c628fba7181af58817d452119481adce4ba92e889c643e4c7dd3@%3Ccommits.netbeans.apache.org%3E[WEB]
- https://lists.apache.org/thread.html/rb5ac16fad337d1f3bb7079549f97d8166d0ef3082629417c39f12d63@%3Cnotifications.netbeans.apache.org%3E[WEB]
- https://www.npmjs.com/advisories/736[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:npm/morgan"]}'