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

Consider updating jQuery dependency to 3.4.0 or newer #20001

Closed
joelverhagen opened this issue Mar 19, 2020 · 8 comments · Fixed by #20356 or #21792
Closed

Consider updating jQuery dependency to 3.4.0 or newer #20001

joelverhagen opened this issue Mar 19, 2020 · 8 comments · Fixed by #20356 or #21792
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates bug This issue describes a behavior which is not expected - a bug. Done This issue has been fixed Servicing-consider Shiproom approval is required for the issue
Milestone

Comments

@joelverhagen
Copy link
Member

My team runs Azure DevOps Component Governance (per internal security requirements) and we received a notice that the following project template is impacted by CVE-2019-11358 affecting jQuery before 3.4.0.

cli/sdk/2.2.100-preview3-009430/Templates/microsoft.dotnet.web.projecttemplates.2.2.2.2.0-preview3-35497.nupkg

I looked inside this template and found jQuery 3.3.1.

I also looked at the latest version of the template and the source code in this repository and see that 3.3.1 is still used: e.g.

We don't specifically use this template but Component Governance picked up on it since we happened to install the CLI at build time inside the directory that it scans.

It's probably worth considering updating the template to jQuery 3.4.0 so consumers of the template don't have to be worried about this CVE.

I see there is another issue of removing jQuery (#8573) but I imagine updating the minor version of jQuery is a cheaper fix for this particular issue.

@rynowak
Copy link
Member

rynowak commented Mar 20, 2020

Note that this bug was filed against 2.2 - but we're still using jQuery 3.3.1 so this is still a relevant issue. @mkArtakMSFT

@rynowak rynowak added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Mar 20, 2020
@mkArtakMSFT mkArtakMSFT added this to the 5.0.0-preview4 milestone Mar 20, 2020
@mkArtakMSFT mkArtakMSFT added Servicing-consider Shiproom approval is required for the issue bug This issue describes a behavior which is not expected - a bug. labels Mar 20, 2020
@wenz
Copy link
Contributor

wenz commented Mar 31, 2020

Other templates also use the old jQuery version. I'm creating a PR which updates them all to 3.4.1.

@wenz
Copy link
Contributor

wenz commented Mar 31, 2020

Update: I found jQuery 2.2.0 - it's in the ClaimsTransformation and Cookies samples under src/Security/samples.

@mkArtakMSFT mkArtakMSFT modified the milestones: 5.0.0-preview4, 3.1.x Mar 31, 2020
wenz added a commit to wenz/aspnetcore that referenced this issue Apr 1, 2020
Fixes dotnet#20001
Updated commit with unchanged line endings
HaoK pushed a commit that referenced this issue Apr 23, 2020
Fixes #20001
Updated commit with unchanged line endings
@HaoK HaoK linked a pull request Apr 25, 2020 that will close this issue
@HaoK
Copy link
Member

HaoK commented Apr 25, 2020

Fixed for 5.0 in #20356 will port to 3.1/2.2 next

@wenz
Copy link
Contributor

wenz commented May 5, 2020

jQuery 3.5.1 was released. Should I open up a new issue, update the existing PR, or create a new one?

@HaoK
Copy link
Member

HaoK commented May 6, 2020

Probably a new PR would be best, since the other PR was already merged, but might be worth considering updating to 3.5.1 before porting the first PR to servicing

@wenz
Copy link
Contributor

wenz commented May 7, 2020

Will work on it today.

@mkArtakMSFT
Copy link
Member

@captainsafia is this done already?

@captainsafia captainsafia added Done This issue has been fixed and removed Working labels Jun 11, 2020
@captainsafia captainsafia modified the milestones: 3.1.x, 3.1.6 Jun 11, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jul 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates bug This issue describes a behavior which is not expected - a bug. Done This issue has been fixed Servicing-consider Shiproom approval is required for the issue
Projects
None yet
6 participants