Autofac.Mvc icon indicating copy to clipboard operation
Autofac.Mvc copied to clipboard

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

Open dash-ravikhoda opened this issue 2 years ago • 5 comments

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

dash-ravikhoda avatar Nov 21 '22 05:11 dash-ravikhoda

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.

tillig avatar Nov 21 '22 06:11 tillig

@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.

dash-ravikhoda avatar Nov 21 '22 06:11 dash-ravikhoda

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.

tillig avatar Nov 21 '22 06:11 tillig

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

dash-ravikhoda avatar Nov 21 '22 08:11 dash-ravikhoda

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.

tillig avatar Nov 21 '22 15:11 tillig