System.Text.Json vulnerabilities

Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data. The System.Text.Json library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.

Registry
NuGet
Latest
11.0.0
License
MIT

3 known advisories

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

Update to the latest version:dotnet add package System.Text.Json --version 11.0.0

Is your project on an affected System.Text.Json?

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 System.Text.Json

  • MediumCVE-2026-120796GHSA-cpw3-h88j-9f6x10 Nov 2026

    Microsoft Security Advisory CVE-2026-120796 - .NET Denial of Service Vulnerability

    Affected
    >=11.0.0-preview.1.26104.118 <11.0.0
    Fixed in
    11.0.0
  • HighCVE-2024-43485GHSA-8g4q-xg66-9fp48 Oct 2024

    Microsoft Security Advisory CVE-2024-43485 | .NET Denial of Service Vulnerability

    Affected
    >=8.0.0 <8.0.5 · >=6.0.0 <6.0.10
    Fixed in
    6.0.10, 8.0.5
  • HighCVE-2024-30105GHSA-hh2w-p6rv-4g7w9 Jul 2024

    Microsoft Security Advisory CVE-2024-30105 | .NET Denial of Service Vulnerability

    Affected
    >=7.0.0 <8.0.4
    Fixed in
    8.0.4

Is your System.Text.Json version vulnerable?

Which of your client projects still run an old System.Text.Json?

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.