MessagePack-CSharp: Typeless deserialization type restrictions do not recurse into arrays or generic arguments (CVE-2026-48517)
MessagePack-CSharp's typeless deserialization feature has a vulnerability where type restrictions do not recursively inspect array element types or generic type arguments. This allows an attacker to bypass outer-type blocklist checks by wrapping disallowed types inside arrays or generic containers. The issue affects applications that deserialize untrusted data using typeless serialization APIs. Fixes are available in versions 2.5.301 and 3.1.7. Users are advised to upgrade and avoid typeless deserialization of untrusted data or use explicit recursive allowlists.
AI Analysis
Technical Summary
The vulnerability in MessagePack-CSharp involves the typeless deserialization safety check implemented by MessagePackSerializerOptions.ThrowIfDeserializingTypeIsDisallowed(Type). The check only inspects the outer type and does not recursively verify nested array element types or generic type arguments. Consequently, disallowed types can be embedded inside arrays or generic types and bypass the blocklist, allowing the formatter to instantiate these inner types. This weakens the intended mitigation against dangerous types during typeless deserialization. The vulnerability affects typeless deserialization features such as MessagePackSerializer.Typeless and TypelessObjectResolver. The issue is fixed in versions 2.5.301 and 3.1.7 by applying recursive type-disallow checks to nested types including arrays, pointers, nullable types, and generic arguments.
Potential Impact
Applications using typeless deserialization with MessagePack-CSharp that rely on disallowed-type checks to block dangerous types may be vulnerable to bypasses. An attacker able to supply typeless ext-100 payloads can circumvent outer-type blocklists by wrapping disallowed types inside arrays or generic containers. This can lead to instantiation of blocked or user-blocklisted gadget types, potentially enabling unsafe deserialization behaviors. The severity is moderate given the requirement for typeless deserialization and attacker ability to supply crafted payloads.
Mitigation Recommendations
A fix is available in MessagePack versions 2.5.301 and 3.1.7. Users should upgrade to these or later versions to ensure recursive type-disallow checks are enforced. Until patched, avoid using typeless deserialization on untrusted data. If typeless deserialization is necessary, configure an explicit allowlist that recursively validates array elements and generic arguments rather than relying on outer-type blocklists alone.
MessagePack-CSharp: Typeless deserialization type restrictions do not recurse into arrays or generic arguments (CVE-2026-48517)
Description
MessagePack-CSharp's typeless deserialization feature has a vulnerability where type restrictions do not recursively inspect array element types or generic type arguments. This allows an attacker to bypass outer-type blocklist checks by wrapping disallowed types inside arrays or generic containers. The issue affects applications that deserialize untrusted data using typeless serialization APIs. Fixes are available in versions 2.5.301 and 3.1.7. Users are advised to upgrade and avoid typeless deserialization of untrusted data or use explicit recursive allowlists.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in MessagePack-CSharp involves the typeless deserialization safety check implemented by MessagePackSerializerOptions.ThrowIfDeserializingTypeIsDisallowed(Type). The check only inspects the outer type and does not recursively verify nested array element types or generic type arguments. Consequently, disallowed types can be embedded inside arrays or generic types and bypass the blocklist, allowing the formatter to instantiate these inner types. This weakens the intended mitigation against dangerous types during typeless deserialization. The vulnerability affects typeless deserialization features such as MessagePackSerializer.Typeless and TypelessObjectResolver. The issue is fixed in versions 2.5.301 and 3.1.7 by applying recursive type-disallow checks to nested types including arrays, pointers, nullable types, and generic arguments.
Potential Impact
Applications using typeless deserialization with MessagePack-CSharp that rely on disallowed-type checks to block dangerous types may be vulnerable to bypasses. An attacker able to supply typeless ext-100 payloads can circumvent outer-type blocklists by wrapping disallowed types inside arrays or generic containers. This can lead to instantiation of blocked or user-blocklisted gadget types, potentially enabling unsafe deserialization behaviors. The severity is moderate given the requirement for typeless deserialization and attacker ability to supply crafted payloads.
Mitigation Recommendations
A fix is available in MessagePack versions 2.5.301 and 3.1.7. Users should upgrade to these or later versions to ensure recursive type-disallow checks are enforced. Until patched, avoid using typeless deserialization on untrusted data. If typeless deserialization is necessary, configure an explicit allowlist that recursively validates array elements and generic arguments rather than relying on outer-type blocklists alone.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-qhmf-xw27-6rqr
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-48517"]
- Ecosystems
- ["NuGet"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a3ef7f327e9c79719036ed5
Added to database: 06/26/2026, 22:06:43 UTC
Last enriched: 06/26/2026, 22:52:50 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 66
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.