-
Notifications
You must be signed in to change notification settings - Fork 129
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
Insecure defaults through Newtonsoft.Json vulnerability #341
Comments
Hi Thomas, thanks for dropping by. The dependency on Microsoft.Extensions.DependencyModel sets a minimum version; it's 99.9% likely that if you're running on a supported .NET version with recent updates you'll get a much, much newer version of this dependency and no such vulnerability will exist in the packages actually installed/consumed by your application. For mostly unrelated reasons we're looking at changing the way this package depends on Microsoft.Extensions.DependencyModel in #339 so with some luck the experience will be smoother in future. |
Hi, we run our project on
I am not really sure what to change to fix this issue, as it seems we already are quite recent. |
I am getting this a lot as well in Snyk, Newtonsoft.Json is a very popular package and Serilog.Settings.Configuration was just the first on in the list I saw. Adding an explicit reference to Newtonsoft.Json seems to have removed the issue for me, I'm guessing if you had another package that had a dependency on Newtonsoft.Json >= 13.0.1 it might have worked as well.
Nuget dependencies confuse me a little but what I think what nblumhardt meant was because Microsoft.Extensions.DependencyModel has a minimum >= of 9.0.1 then it will still work if something references something higher, so by explicitly setting it to 13.0.1 (which Snyk says it is resolved in) then it won't use 9.0.1 in your project. |
@nblumhardt @skomis-mm you may consider to bump Microsoft.Extensions.DependencyModel to version >= 6 (5 still references nsj for net451) in the light of upcoming serilog bump to v3. Also ping @SimonCropp |
fixed in #351 |
Can this be closed now? (at this point, Microsoft.Extensions.DependencyModel should just be using System.Text.Json rather than Newtonsoft.) |
Our Snyk scan has revealed the following issues with the current version of the package:
The issue is regarding the currently used version of Newtonsoft.Json, which is ->
[email protected] › [email protected] › [email protected]
Affected versions of this package are vulnerable to Insecure Defaults due to improper handling of StackOverFlow exception (SOE) whenever nested expressions are being processed. Exploiting this vulnerability results in Denial Of Service (DoS), and it is exploitable when an attacker sends 5 requests that cause SOE in time frame of 5 minutes.
Note: This vulnerability is only applicable to systems deployed on IIS (Internet Information Services) web-server
The issue is fixed in Newtonsoft.Json version 13.0.1 and higher.
The text was updated successfully, but these errors were encountered: