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

JQuery 1.12.4 (with vuln) loaded by default #3905

Closed
mduleone opened this issue Jan 21, 2021 · 5 comments
Closed

JQuery 1.12.4 (with vuln) loaded by default #3905

mduleone opened this issue Jan 21, 2021 · 5 comments
Labels
security Report related to security issues type:bug Error, flaw or fault

Comments

@mduleone
Copy link

The version of jQuery loaded by default on all (frontend, backend) Solidus apps is version 1.12.4, as that is the version that jquery-rails loads when requiring simply jquery. This version has several known security vulnerabilities. The use of jQuery 1.12.4 was recently flagged for us as a security vulnerability, and was a surprise, as we don't use that version of jQuery.

A simple fix might be to update to jquery3 in all places where jquery is required, but we are unsure if this will have broader consequences. Also, we were unsure if this was on your radar, as it seems to be a simple thing to miss.

Solidus Version:

Latest

To Reproduce

Generate a new Solidus app, see the jquery version pulled in

@jarednorman
Copy link
Member

Thanks for pointing this out!

@mduleone
Copy link
Author

@jarednorman has there been any movement or attempt at resolution to this?

@jarednorman
Copy link
Member

Not that I know of. We should definitely upgrade and I suspect it wouldn't be too difficult, but I think only the first two could realistically affect the app, and we audited the code in the early days after the fork when we found an XSS vulnerability that was similar but involved select2.

@rabbitbike
Copy link
Contributor

rabbitbike commented Jul 14, 2021

I would like to report that I had to update to jquery3 in order to pass a PCI vulnerability scan. I am using SecureTrust's vulnerability scan tool and it reported a few items that called for jQuery v3.5 or above. These items make the vulnerability scan to fail.

It will be nice if the jQuery version gets updated to a recent, supported version so new users of solidus will not have to face the same issue.

@waiting-for-dev waiting-for-dev added type:bug Error, flaw or fault security Report related to security issues labels Sep 6, 2022
@cesartalves
Copy link
Contributor

@cpfergus1 seems to have fixed this already. @kennyadsl I would assume it is safe to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Report related to security issues type:bug Error, flaw or fault
Projects
None yet
Development

No branches or pull requests

5 participants