Improper Control of Generation of Code ('Code Injection') Affecting maildev package, versions <2.2.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Control of Generation of Code ('Code Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MAILDEV-6592886
  • published9 Apr 2024
  • disclosed5 Apr 2024
  • creditTimothy Hoekstra

Introduced: 5 Apr 2024

CVE-2024-27448  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade maildev to version 2.2.0 or higher.

Overview

maildev is a SMTP Server and Web Interface for reading and testing emails during development

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') in the saveAttachment function within maildev/lib/mailserver.js file. An attacker can execute arbitrary code on the system by sending a specially crafted email.

CVSS Scores

version 3.1