Insecure Default Initialization of Resource Affecting messagepack.aspnetcoremvcformatter package, versions [,2.5.301)[3.0,3.1.7)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (17th 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 IDSNYK-DOTNET-MESSAGEPACKASPNETCOREMVCFORMATTER-17660974
  • published28 Jun 2026
  • disclosed25 Jun 2026
  • creditAArnott

Introduced: 25 Jun 2026

CVE-2026-48509  (opens in a new tab)
CWE-1188  (opens in a new tab)

How to fix?

Upgrade MessagePack.AspNetCoreMvcFormatter to version 2.5.301, 3.1.7 or higher.

Overview

Affected versions of this package are vulnerable to Insecure Default Initialization of Resource due to the parameterless MessagePackInputFormatter constructor using insecure default serializer options, which resolve to a trusted data security posture. An attacker can cause denial of service or degrade application performance by sending specially crafted HTTP request bodies with colliding keys to exploit hash-based collections during model binding. This is only exploitable if the formatter is registered using the parameterless constructor without explicitly configuring untrusted-data options.

Workaround

This vulnerability can be mitigated by registering the formatter with explicit untrusted-data options and applying normal HTTP request-size limits and model validation.

CVSS Base Scores

version 4.0
version 3.1