event-driven-dotnet / EventDriven.EventBus.Dapr

Event bus abstraction over Dapr pub/sub
MIT License
22 stars 5 forks source link

Upgrade Newtonsoft.Json library (Vulnerability Issue - Denial Of Service (DoS)) #32

Closed KlemenZarn2024 closed 1 year ago

KlemenZarn2024 commented 1 year ago

Describe the bug In our application we found out vulnerability issue (Denial Of Service (DoS)) regarding Newtonsoft.Json library which this library uses. Issue was found with Veracode scans.

Dependency graph: eventdriven.eventbus.dapr 1.3.6 -> eventdriven.schemavalidator.json 1.1.0 -> newtonsoft.json.schema 3.0.14 -> newtonsoft.json 12.0.3

Please upgrade affected libraries that will use at least newtonsoft.json 13.0.1 in which Denial Of Service (DoS) vulnerability is fixed.

Additional context Newtonsoft.Json is vulnerable to denial of service. The use of insecure defaults cause an StackOverFlow exception (SOE) whenever nested expressions are being processed when an attacker sends 5 requests that cause SOE in time frame of 5 minutes.