MessagePack is vulnerable to Deserialization of Untrusted Data
59
Medium Risk
MessagePack's Typeless (dynamic) serialization mode resolves an embedded type name from the payload and instantiates the corresponding .NET type, gated only by the default DisallowedTypes denylist in MessagePackSerializerOptions. Before this fix, that denylist omits several classes commonly used as .NET deserialization gadgets, including ObjectDataProvider, ClaimsIdentity, and SessionSecurityToken, so untrusted MessagePack payloads processed with Typeless deserialization can instantiate those types and reach known gadget behavior. The fix adds these types to the default DisallowedTypes set so TypelessFormatter rejects them during deserialization.
You are affected if you are using a version that falls within the vulnerable range and you deserialize untrusted MessagePack data using Typeless (dynamic) type resolution.
MessagePack is vulnerable to Deserialization of Untrusted Data in versions 1.4.0 - 2.5.198 and 3.0.3 - 3.1.4.
Upgrade the MessagePack library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.