CVE-2019-5413CWE-94

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

published March 17, 2019

CVSS
—
EPSS
3%
Percentile
88.8
In the wild
Unconfirmed
What it is

🚨 A crafty format parameter can let attackers inject any command they fancy into the npm package morgan versions below 1.9.1! ⚡ Think of it like a restaurant that accepts any dish order without checking the ingredients — if someone sneaks in a secret recipe for disaster, it could spoil the whole meal! If exploited, this vulnerability could allow an attacker to execute arbitrary commands on your server, potentially compromising sensitive data or taking control entirely. This could lead to an absolute nightmare for your application’s security!

Put simply

Think of it like a restaurant that accepts any dish order without checking the ingredients — if someone sneaks in a secret recipe for disaster, it could spoil the whole meal! This vulnerability in the morgan npm package allows attackers to inject malicious commands through a specially crafted format parameter, bypassing normal validation processes.

What to do

If exploited, this vulnerability could allow an attacker to execute arbitrary commands on your server, potentially compromising sensitive data or taking control entirely. This could lead to an absolute nightmare for your application’s security! To protect your application, upgrade morgan to version 1.9.1 or later immediately. Additionally, review your input validation practices to ensure no other similar vulnerabilities exist. Don’t forget to audit your dependencies regularly! You've got this! With these steps, you’ll safeguard your application in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.03399 · 88.8th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2019-03-17T19:36Z
EPSS history
Timeline
  • 17 MAR 19:36Z
    An attacker can use the format parameter to inject arbitrary commands in the npm package morgan < 1.9.1
    cvelistv5