GitHub Advisoryadvisory · npm
GHSA-gwg9-rgvj-4h5j Code Injection in morgan
CRITICAL
Official page ↗
- Aliases
- CVE-2019-5413
- Ecosystem
- npm
- Packages
- morgan
- Severity
- Critical
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
- Reviewed
- 2020-06-16
Affected packages
• npm morgan: < 1.9.1 → fixed in 1.9.1
Description
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.
Related
Alias · CVE (1)
- CVE-2019-5413 An attacker can use the format parameter to inject arbitrary commands in the npm package morgan < 1.9.1. vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
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