MessagePack vulnerabilities

Extremely Fast MessagePack(MsgPack) Serializer for C# (.NET Framework, .NET 6, Unity, Xamarin).

Registry
NuGet
Latest
3.1.12
License
MIT

15 known advisories

The latest version, 3.1.12, is not affected by any of them. Projects on older versions may be.

Update to the latest version:dotnet add package MessagePack --version 3.1.12

Is your project on an affected MessagePack?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for MessagePack

  • MediumCVE-2026-92707GHSA-qhrr-8q5h-9q3h15 Oct 2026

    MessagePack: Nested arrays can blow past buffer length limits

    Affected
    <2.5.303 · >=3.0.0 <3.1.9
    Fixed in
    2.5.303, 3.1.9
  • MediumCVE-2026-48517GHSA-qhmf-xw27-6rqr25 Jun 2026

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

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • MediumCVE-2026-48516GHSA-q2h6-ghwm-5qm825 Jun 2026

    MessagePack-CSharp: InterfaceLookupFormatter bypasses collision-resistant comparer settings

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • MediumCVE-2026-48515GHSA-cxmj-83gh-fp4925 Jun 2026

    MessagePack-CSharp: Multi-dimensional array formatters allocate from unchecked dimensions

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • MediumCVE-2026-48514GHSA-w567-gjr2-hm5j25 Jun 2026

    MessagePack-CSharp: Unity unsafe blit formatter allocates from unbounded byte length

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • MediumCVE-2026-48513GHSA-wfr3-xj75-pfwh25 Jun 2026

    MessagePack-CSharp: DynamicUnionResolver-generated deserializers miss depth enforcement

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • MediumCVE-2026-48512GHSA-cj9g-3mj2-g8vv25 Jun 2026

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

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • MediumCVE-2026-48511GHSA-2x83-8g95-xh5925 Jun 2026

    MessagePack-CSharp: ExpandoObject formatter can perform quadratic insertion work on untrusted maps

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • MediumCVE-2026-48510GHSA-v72x-2h86-7f8m25 Jun 2026

    MessagePack-CSharp: LZ4 decompression allocates from unbounded declared output lengths

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • MediumCVE-2026-48509GHSA-2f33-pr97-265q25 Jun 2026

    MessagePack-CSharp: ASP.NET Core MessagePackInputFormatter defaults to TrustedData for HTTP request bodies

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • HighCVE-2026-48506GHSA-vh6j-jc39-fggf25 Jun 2026

    MessagePack-CSharp: MessagePackReader.Skip can recurse without enforcing maximum object graph depth

    Affected
    <2.5.301 · >=3.0 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • HighCVE-2026-48502GHSA-382j-8mxh-c7x225 Jun 2026

    MessagePack-CSharp: Denial of service vulnerabilities can swamp the CPU or crash the process with stack and heap overflows

    Affected
    >=3.0 <3.1.7
    Fixed in
    3.1.7
  • HighCVE-2026-48109GHSA-hv8m-jj95-wg3x11 Jun 2026

    MessagePack's LZ4 decompression may fail with AccessViolationException after dereferencing memory from bad input

    Affected
    <2.5.301 · >=3.0.214-rc.1 <3.1.7
    Fixed in
    2.5.301, 3.1.7
  • MediumCVE-2024-48924GHSA-4qm4-8hg2-g2xm17 Oct 2024

    MessagePack allows untrusted data to lead to DoS attack due to hash collisions and stack overflow

    Affected
    <2.5.187 · >=2.6.95-alpha <3.0.214-rc.1
    Fixed in
    2.5.187, 3.0.214-rc.1
  • MediumCVE-2020-5234GHSA-7q36-4xx7-xcxf31 Jan 2020

    Untrusted data can lead to DoS attack due to hash collisions and stack overflow in MessagePack

    Affected
    <1.9.11 · >=2.0.0 <2.1.90
    Fixed in
    1.9.11, 2.1.90

Is your MessagePack version vulnerable?

Which of your client projects still run an old MessagePack?

NPMscan reads the packages.lock.json and .csproj files in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other NuGet packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the NuGet registry.