System.Text.Json is vulnerable

ChuckieAJ 96 Reputation points
2024-07-16T15:44:31.5566667+00:00

According to NuGet Package Manager:

User's image

When will this vulnerability be addressed? I see there is now a System.Text.Json version 8.0.4 which does not have the vulnerability status.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,767 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Drew Jenkel 0 Reputation points
    2024-08-11T19:32:32.2133333+00:00

    I also have this issue. It appears the latest version that is NOT vulnerable is 6.0.9?

    Are we expected to downgrade our code to 6.0.9?

    0 comments No comments

  2. Anupam Singh 0 Reputation points
    2024-08-20T05:34:16.6766667+00:00

    Here's how to solve this:
    The latest is not visible because it is tied to newer .net 8 SDK . ( .net sdk 8.0.401 release)
    Download the latest for your Vstudio from here
    https://dotnet.microsoft.com/en-us/download/visual-studio-sdks
    Then reload your project ( or close/ open VS)
    You'll see the latest non-vulnerable 8.0.4 (as of today)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.