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

CVE-2026-48517: MessagePack-CSharp: Typeless deserialization type restrictions do not recurse into arrays or generic arguments

June 25, 2026

MessagePack-CSharp’s typeless deserialization includes MessagePackSerializerOptions.ThrowIfDeserializingTypeIsDisallowed(Type) as a safety check for dangerous types. The default implementation checks the outer type name, but it does not recursively inspect array element types or generic type arguments.

As a result, a type that would be blocked directly can be wrapped inside an array or constructed generic type and pass the outer type check. The formatter machinery can then materialize formatters for the inner blocked type.

References

  • github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-qhmf-xw27-6rqr
  • github.com/advisories/GHSA-qhmf-xw27-6rqr
  • nvd.nist.gov/vuln/detail/CVE-2026-48517

Code Behaviors & Features

Detect and mitigate CVE-2026-48517 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:L/A:N

Learn more about CVSS

Weakness

  • CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
  • CWE-502: Deserialization of Untrusted Data

Source file

nuget/MessagePack/CVE-2026-48517.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Mon, 13 Jul 2026 12:20:52 +0000.