CVE-2026-48512: MessagePack-CSharp: JSON conversion APIs can recurse without consistent depth enforcement
MessagePack-CSharp’s JSON conversion helpers contain multiple recursion paths that do not consistently enforce a depth limit. These paths are in the JSON conversion component rather than normal typed MessagePack deserialization.
Three related issues are covered by this advisory:
MessagePackSerializer.ConvertFromJsonrecursively processes nested JSON arrays and objects inFromJsonCore()without consultingMessagePackSecurity.MaximumObjectGraphDepth.TinyJsonReader.ReadNextToken()recursively consumes comma and colon separator characters, allowing even malformed JSON with long separator runs to consume one stack frame per character.MessagePackSerializer.ConvertToJsonapplies depth checks to arrays and maps, but the typeless extension branch for ext-100 recursively callsToJsonCore()without applyingMessagePackSecurity.DepthStep(ref reader).
Each path can allow attacker-controlled input to exhaust the process stack and trigger an uncatchable StackOverflowException instead of failing with a catchable parse or serialization exception.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-48512 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →