Arbitrary Code Injection Affecting @nestjs/common package, versions *


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (12th 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 Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NESTJSCOMMON-9538801
  • published28 Mar 2025
  • disclosed14 Mar 2025
  • creditYunus AYDIN

Introduced: 14 Mar 2025

NewCVE-2024-29409  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for @nestjs/common.

Overview

@nestjs/common is a Nest - modern, fast, powerful node.js web framework (@common)

Affected versions of this package are vulnerable to Arbitrary Code Injection via the FileTypeValidator function due to improper MIME Type Validation. An attacker can execute arbitrary code by sending a crafted payload in the Content-Type header of a request.

Note:

The FileTypeValidator documentation specifically mentions that it is vulnerable and provides security enhancement recommendations.

CVSS Base Scores

version 4.0
version 3.1