domaindrivendev / Swashbuckle.WebApi

Seamlessly adds a swagger to WebApi projects!
BSD 3-Clause "New" or "Revised" License
3.07k stars 679 forks source link

How to load latest version of embedded JS files via embedded swagger UI (Ex. Jquery, lodash, highlight, backbone) #1392

Open nilesh-shah opened 3 years ago

nilesh-shah commented 3 years ago

Hello, We are currently using Swashbuckle 5.5.3 with embedded swagger ui. However, the embedded javascript files within that seems deprecated or not not latest versions wrt their versions and it has become vulnerable. Is there a way by we can customize this? One way could be putting all such JS files as embedded resource and load them in the index.html. However that would increase the size of the our DLL. Would upgrading to latest version of Swashbucklehelp? Please let me know what could be the another way here to proceed.

Below URL for reference which loads JS files having versions which are vulnerable.

https://github.com/domaindrivendev/Swashbuckle.WebApi/blob/v5.5.3/Swashbuckle.Core/SwaggerUi/CustomAssets/index.html

Any help would be appreciated here.

Thanks

tsandu commented 2 months ago

Hi Nilesh,

have you had any updates on this? I need to update lodash, and not sure how to do this at the moment.