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

Upgrade Microsoft.AspNet.Mvc version from 5.10 to a greater version #41

Open
dash-ravikhoda opened this issue Nov 21, 2022 · 5 comments

Comments

@dash-ravikhoda
Copy link

Problem Statement

Currently Autofac.Mvc using Microsoft.AspNet.Mvc version 5.10 which is outdated.

Desired Solution

Upgrade Microsoft.AspNet.Mvc to latest version.

Alternatives You've Considered

Additional Context

@tillig
Copy link
Member

tillig commented Nov 21, 2022

Is this something that can't be fixed by adding the reference to your project or is something broken that would be fixed by this? We generally don't update for the sake of updating.

@dash-ravikhoda
Copy link
Author

@tillig Thanks for the quick update. I am requesting this as one of the security scan tools suggested that Microsoft.AspNet.MVC version 5.10 has a vulnerability of cross-site scripting which can be fixed by updating the latest Nuget package in my project.

When I checked my project, I found that Autofac.MVC is using Microsoft.AspNet.MVC version 5.10.

@tillig
Copy link
Member

tillig commented Nov 21, 2022

Have you tried adding a direct reference to the newer Microsoft.AspNet.Mvc in your project? You should be able to do that and resolve it with no change to Autofac integration.

@dash-ravikhoda
Copy link
Author

Yes, I did. But it still shows the issue with the Autofac only.

@tillig
Copy link
Member

tillig commented Nov 21, 2022

This seems like a bug in your security scanning software. If you reference both the Autofac package and the updated MVC package, your app will run with the update, not the old version. It shouldn't be scanning the Autofac package in isolation.

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

No branches or pull requests

2 participants