Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update references for System.Text.Json #2277

Open
albgen opened this issue Dec 23, 2024 · 1 comment
Open

Update references for System.Text.Json #2277

albgen opened this issue Dec 23, 2024 · 1 comment
Labels

Comments

@albgen
Copy link

albgen commented Dec 23, 2024

Describe the bug
The latest version of Restsharp is referencing the version 8.0.0.4 of System.Text.Json which is Vulnerable
This means that i can't update the System.Text.Json because it will break the dependency.

To Reproduce
Use Restsharp latest version and also reference to latest version of System.Text.Json.

Expected behavior
Load the latest assembly of System.Text.Json

Stack trace
A call to devPOS.Fiskalizimi.Client.GlobalConfiguration.AccessToken failed with this message: Could not load file or assembly 'System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
ExceptionStackTrace:
at Microsoft.Dynamics.Nav.Runtime.NavDotNet.Invoke[T](String methodName, UInt32 methodIndex, BindingFlags flags, ParameterModifier modifier, Type[] referenceTypes, Object[] arguments)
at Microsoft.Dynamics.Nav.Runtime.NavDotNet.InvokePropertyGet[T](Boolean isStatic, String propertyName, UInt32 methodIndex)
at Microsoft.Dynamics.Nav.Runtime.NavDotNet.InvokePropertyGet[T](String propertyName, UInt32 methodIndex)..etc

Desktop (please complete the following information):

  • OS: Windows
  • .NET FRamework 4.8
  • Version 112.1
@albgen albgen added the bug label Dec 23, 2024
@Shujee
Copy link

Shujee commented Jan 29, 2025

Facing the same issue in a .NET Framework app. Tried binding redirects as well as global.json, none of which work. Only solution right now is to downgrade to vulnerable version 8.0.0.4 of System.Text.Json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants