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

Update install templates to use jquery3 (vulnerability fix) #4167

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

cpfergus1
Copy link
Contributor

@cpfergus1 cpfergus1 commented Sep 14, 2021

Description
jQuery has known vulnerabilities in versions prior to 3.5.0. This commit updates the load configuration to require and resolve to a version greater than 3.5.0 thereby alleviating the vulnerability. This applies to new installs only as it modifies the install template.

This change is in response to Issue #3905

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)

@cpfergus1 cpfergus1 changed the title Update install templates to use jquery3 Update install templates to use jquery3 (vulnerability fix) Sep 14, 2021
jQuery has known vulnerabilities in versions prior to `3.5.0`. This
commit updates the load configuration to require `jquery3` instead of
`jquery`. This will resolve the `jquery` version from `1.12.4` to
`3.5.1`, thereby alleviating the vulnerability for new installations.
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpfergus1 Thanks but I don't understand who is resolving jquery to a different version by just adding the version there. Can you please help me?

@cpfergus1
Copy link
Contributor Author

cpfergus1 commented Sep 15, 2021

@cpfergus1 Thanks but I don't understand who is resolving jquery to a different version by just adding the version there. Can you please help me?

The jquery-rails gem that is already utilized in solidus provides three of the latest jquery versions (1.x.x, 2.x.x, 3.x.x) which can be selected by appending the desired version number -> require (jquery, jquery2, jquery3).

@kennyadsl kennyadsl merged commit bb66174 into solidusio:master Sep 22, 2021
@cpfergus1 cpfergus1 mentioned this pull request Sep 13, 2022
7 tasks
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

Successfully merging this pull request may close these issues.

3 participants