-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Fix vulnerability found in Microsoft.AspNetCore dependency #507
Comments
Hello @APIWT, I'll take a look on how to fix this. |
Thanks @StefH! Please let me know if there is anything I can do to help. |
Can you try WireMock.Net.1.3.0-ci-13770 from MyGet ? (https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions) |
I think I may be doing something silly, but I am getting an error in the restore step. Here is my
Here is the restore error:
|
@StefH So I figured out the restore issue. Here are the two vulnerabilities that appear when I use the preview release:
|
1] Should be fixed, please install new MyGet version (can take a few minutes to build and to become available...) 2] |
Hey again! For number 2, I think it is possible to fix this for applications targetting netcoreapp3.1 which use the |
Here is some supporting documentation if it helps: https://docs.microsoft.com/en-us/aspnet/core/migration/22-to-30?view=aspnetcore-3.1&tabs=visual-studio#remove-obsolete-package-references |
Can you test if item About item 2: |
For now, I think the best I could do, is done now. In case you want to use WireMock in a NetCoreApp 3.1 hosted application, I think the best way to move forward is to follow this idea : #498 What do you think about that? |
@APIWT Is it ok that I close this issue and create a new NuGet? |
Sure! It is funny that you mention that approach, we do something similar for a mobile app. |
OK, Please keep a watch on #498 and add a comment if needed. |
@StefH Good news, I think I may have a possible solution that doesn't require removing the wire portion of WireMock.Net :) I was able to add Next, I changed: To: Then I added the following ItemGroup:
The magic here is that I use a Lastly, I needed to make a minor tweak to To: This seems to allow me to target netcoreapp3.0 and netcoreapp3.1 without an underlying reference to the Is this something that we could potentially see in a future release? |
You can make PR for this. |
Great news, I just tried out CI build 13791 and Snyk is very happy :) I really appreciate your help. |
Is your feature request related to a problem? Please describe.
Our application is scanned with Snyk, and the results of the scan have this popping up:
Describe the solution you'd like
My guess is that it would be possible to get rid of the dependency on
Microsoft.AspNetCore
for projects targetingnetcoreapp3.1
(though honestly this isn't my area of expertise.Describe alternatives you've considered
I could likely suppress this warning since we only use
WireMock.Net
in our test projects, but I don't know if I can get our customer to buy in on this.Additional context
I really appreciate any help or consideration here!
The text was updated successfully, but these errors were encountered: