Skip to content

Conversation

@mterente
Copy link
Contributor

@mterente mterente commented Apr 2, 2019

As Jquery < 3.0.0 is vulnerable to XSS - see https://www.cvedetails.com/cve/CVE-2015-9251/, I'd like to suggest you to update it to the latest version, with this PR.

Copy link
Contributor

@yihui yihui left a comment

Choose a reason for hiding this comment

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

Did you test it? Thanks!

Copy link
Contributor

@yihui yihui left a comment

Choose a reason for hiding this comment

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

Sorry for the late response. This PR looks simple enough, but there are two complications, which make me hesitate:

  1. If we only consider bookdown, this PR would be fine. However, jQuery is not only used for bookdown. For example, HTML Widgets may also use jQuery. If we update the jQuery dependency here, I'm not sure if it will affect HTML widgets. The validation of HTML widgets will be much more work, unless jQuery 3 is pretty much compatible with 2 (I doubt so, since the major version has changed).

  2. gitbook/js/app.js actually embedded a full copy of jQuery 2.1.4 in it, so presumably you'll have to replace that copy, too.

Usually I hate being stuck in an old version of a library, but there seems to be more work to do. I think I'll be willing to take the risk of upgrading after we have at least confirmed that the basic examples of common HTML widgets still work well with jQuery 3, plus that buttons on the gitbook toolbar still function well.

Thank you very much!

@CLAassistant
Copy link

CLAassistant commented Sep 24, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

✅ yihui
❌ mterente
❌ FusionFabricUser
You have signed the CLA already but the status is still pending? Let us recheck it.

@yihui yihui added the next to consider for next release label Apr 26, 2021
@cderv cderv added this to the v0.23 milestone Apr 27, 2021
Copy link
Contributor

@yihui yihui left a comment

Choose a reason for hiding this comment

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

I have finally got the chance to work on this issue. Now we are importing jQuery from the R package jquerylib instead of shipping a copy inside this package. Thank you!

@yihui yihui merged commit bb62d08 into rstudio:main Jul 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

next to consider for next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants