Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. MessagePack
  4. ›
  5. CVE-2026-48512

CVE-2026-48512: MessagePack-CSharp: JSON conversion APIs can recurse without consistent depth enforcement

June 25, 2026

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:

  1. MessagePackSerializer.ConvertFromJson recursively processes nested JSON arrays and objects in FromJsonCore() without consulting MessagePackSecurity.MaximumObjectGraphDepth.
  2. TinyJsonReader.ReadNextToken() recursively consumes comma and colon separator characters, allowing even malformed JSON with long separator runs to consume one stack frame per character.
  3. MessagePackSerializer.ConvertToJson applies depth checks to arrays and maps, but the typeless extension branch for ext-100 recursively calls ToJsonCore() without applying MessagePackSecurity.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

  • github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-cj9g-3mj2-g8vv
  • github.com/advisories/GHSA-cj9g-3mj2-g8vv
  • nvd.nist.gov/vuln/detail/CVE-2026-48512

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 →

Affected versions

All versions before 2.5.301, all versions starting from 3.0.0 before 3.1.7

Fixed versions

  • 2.5.301
  • 3.1.7

Solution

Upgrade to versions 2.5.301, 3.1.7 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

nuget/MessagePack/CVE-2026-48512.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 16 Jul 2026 00:18:12 +0000.