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

Remove jQuery Migrate #4628

Closed
LukasReschke opened this issue May 1, 2017 · 8 comments
Closed

Remove jQuery Migrate #4628

LukasReschke opened this issue May 1, 2017 · 8 comments
Labels
1. to develop Accepted and waiting to be taken care of overview security technical debt

Comments

@LukasReschke
Copy link
Member

LukasReschke commented May 1, 2017

Ref http://research.insecurelabs.org/jquery/test/

@MorrisJobke
Copy link
Member

MorrisJobke commented May 1, 2017

  • gallery app

bildschirmfoto 2017-05-01 um 17 31 44

  • calendar app (creating a event and selecting a date)

bildschirmfoto 2017-05-01 um 17 34 46

  • contacts app (opening the web UI for contacts)

bildschirmfoto 2017-05-01 um 17 35 27

That are the things I noticed by some clicking. We should simply drop it very early and ask the developers to check their apps. Contacts and Calendar seem to heavily use jquery-ui which uses many of the methods of the jquery-migrate file. 🙈

MorrisJobke added a commit to nextcloud/files_pdfviewer that referenced this issue May 1, 2017
* removes dependency on jquery-migrate.js
* see nextcloud/server#4628

Signed-off-by: Morris Jobke <[email protected]>
@MorrisJobke
Copy link
Member

  • files_pdfviewer when opening a PDF

bildschirmfoto 2017-05-01 um 17 45 07

@georgehrke
Copy link
Member

calendar app (creating a event and selecting a date)

FullCalendar comes even bundled with jQuery 3.2.1. Not sure why it's invoking jquery-migrate. Should simply work without it.

I think we can safely ignore the attr() might use property instead of attribute warning. The jQuery.attrFn and jQuery.fn.load() might be more tricky to fix.

@rullzer rullzer removed this from the Nextcloud 14 milestone Jun 19, 2018
@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jul 20, 2018
@Tyler-2
Copy link

Tyler-2 commented Jul 25, 2018

I believe this is causing high-severity PCI scan failures when run against publicly accessible NextCloud instances.

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Jul 25, 2018
@skjnldsv skjnldsv added the 1. to develop Accepted and waiting to be taken care of label Jun 17, 2019
@skjnldsv skjnldsv added this to the Nextcloud 18 milestone Nov 16, 2019
@skjnldsv
Copy link
Member

We should be able to remove it for 18 (calendar don't have it, gallery for 18, contacts don't have it...)

@rullzer rullzer removed this from the Nextcloud 18 milestone Dec 9, 2019
@PVince81
Copy link
Member

PVince81 commented Nov 11, 2021

is it gone or are we still pulling it through node_modules in NC 22.2.0 ?

% find . -iname \*migrate\*.js
./apps/spreed/node_modules/ts-jest/dist/cli/config/migrate.js
./node_modules/jquery-migrate/test/migrate.js
./node_modules/jquery-migrate/src/migrate.js
./node_modules/jquery-migrate/src/migratemute.js
./node_modules/jquery-migrate/dist/jquery-migrate.js
./node_modules/jquery-migrate/dist/jquery-migrate.min.js
./node_modules/jquery-ui/external/jquery-migrate-1.4.1/jquery-migrate.js
./node_modules/jquery-ui/external/jquery-migrate-3.3.2/jquery-migrate.js

@deeztek
Copy link

deeztek commented Nov 18, 2021

I have the same question. We have a finding of jquery 2.1.4 on NC 22 from a pen test. Need to be able to answer why such a low version of jquery is used in NC.

@susnux
Copy link
Contributor

susnux commented Mar 4, 2024

#43469

@susnux susnux closed this as completed Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of overview security technical debt
Projects
None yet
Development

No branches or pull requests