{"id":"CVE-2026-48509","published":"2026-06-22T21:16:50Z","modified":"2026-06-25T15:02:55Z","title":"MessagePack-CSharp: ASP.NET Core MessagePackInputFormatter defaults to TrustedData for HTTP request bodies","vendor":"MessagePack-CSharp","product":"MessagePack-CSharp","tier":"tail","description":{"text":"MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, the parameterless MessagePackInputFormatter() constructor uses default serializer options, which resolve to MessagePackSerializerOptions.Standard with MessagePackSecurity.TrustedData. The formatter is designed for ASP.NET Core MVC request bodies, which commonly cross an HTTP trust boundary. This insecure default can expose applications to denial-of-service attacks that MessagePackSecurity.UntrustedData is intended to mitigate, such as hash-collision attacks against dictionary-like model properties. This vulnerability is fixed in 2.5.301 and 3.1.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00416,"percentile":0.27592,"provenance":"source"},"cwes":[{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"references":[{"url":"https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-2f33-pr97-265q","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":5.52},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"messagepack-csharp","affectedVersions":[{"vendor":"MessagePack-CSharp","product":"MessagePack-CSharp","versions":[">= 3.0, < 3.1.7","< 2.5.301"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T12:36:18.860613Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"MessagePack","vulnerableRanges":["<2.5.301",">=3.0, <3.1.7"],"patched":["2.5.301","3.1.7"],"from":["GHSA-2f33-pr97-265q"],"provenance":"source"}],"summary":{"text":"The MessagePack-CSharp library's parameterless MessagePackInputFormatter() constructor defaults to the TrustedData security mode, which is unsafe for ASP.NET Core MVC request bodies that arrive across an HTTP trust boundary. An unauthenticated remote attacker who can send HTTP requests to an affected application can mount denial-of-service attacks, such as hash-collision attacks against dictionary-like model properties, and the attack is only feasible when the application uses the parameterless constructor with default options.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:49Z"},"euvd":{"id":"EUVD-2026-38387","exploited":false,"provenance":"source"}}