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 Security vulnerability #189

Closed
adamdjbrett opened this issue Apr 23, 2019 · 13 comments
Closed

jQuery Security vulnerability #189

adamdjbrett opened this issue Apr 23, 2019 · 13 comments

Comments

@adamdjbrett
Copy link

Dear @Phlow,

I love the feeling-responsive theme and think it is quite awesome. Thank you.
I noticed that /assets/js/javascript.js uses jQuery@2.1.1which per google lighthouse has 1 vulnerability and it is listed as medium.

I have opened javascript.js and tried to just copy/paste/update the JQuery at the top of the doc with the most current version 3.4.0 but when I do that it kicks up JS validation issues with the rest of the javascript.js. I also tried separating out the various JS libs in the javascript.js but that also created validation errors. Do you have any suggestions?

Regards,

Adam DJ Brett

Screenshot

@Phlow
Copy link
Owner

Phlow commented Apr 30, 2019

Hey @adamdjbrett - Thank you for your help. I will try to update the script as soon as possible.

@adamdjbrett
Copy link
Author

awesome thank you so much

@sk33lz
Copy link

sk33lz commented Aug 10, 2019

Ideally specific JS libraries and custom JS code can be split into separate files before the build process in future releases to hopefully allow updating easier without you needing to rewrite the script @Phlow. I'd much rather be able to update it myself and then send you a Pull Request ;)

@sk33lz
Copy link

sk33lz commented Aug 10, 2019

Additionally, Lighthouse is now reporting 2 vulnerabilities.

See https://snyk.io/vuln/npm:jquery?lh=2.1.1&utm_source=lighthouse&utm_medium=ref&utm_campaign=audit

@Phlow
Copy link
Owner

Phlow commented Aug 19, 2019

Yes, I know, I have to get rid of jQuery. I think, I will have some time in the coming months to do this.

@adamdjbrett
Copy link
Author

Thank you

@thedavidmeister
Copy link

i don't think you need to get rid of jQuery, just organise it so that other people can contribute more easily 🤔

@markstos
Copy link

I confirmed today with a Lighthouse test that this is still vulnerable. I looked at https://github.com/Phlow/feeling-responsive/blob/gh-pages/assets/js/javascript.js and I see there what other people have found-- it appears that jQuery code is mixed with custom code.

Looks a great theme but considering this hasn't gotten fixed in the last nine months and the code is entangled, I think I'll keep looking.

@gilardh
Copy link
Contributor

gilardh commented Feb 10, 2020

Has anyone updated the /assets/js/javascript.js file with a recent jQuery version ?

@bolaurent
Copy link
Contributor

I've just released a new site based on this theme, so I am also very interested in a fix.

@bolaurent
Copy link
Contributor

bolaurent commented Feb 10, 2020

I've patched the vulnerabilities in jquery.js.

See my pull request #201

@bolaurent
Copy link
Contributor

and btw, thank you so much @Phlow for releasing this template. It helped me to create, in two days, the following website for a usa nonprofit org, despite being a total newcomer to jekyll and netlify. We have work to do yet on the logo and header banner, but it's already a huge improvement over the creaky wordpress website they had been using.

https://sonomamatsuri.com

@Phlow
Copy link
Owner

Phlow commented Feb 17, 2020

Hey @bolaurent , it's always great to see how people use the theme and participate :) All the best for the festival :)

@Phlow Phlow closed this as completed Feb 17, 2020
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

7 participants