Update jquery on a 5.2.14 site

Is it possible to update jquery to latest version on a Plone 5.2.14 site?

The following version was identified as being vulnerable: Version: 1.12.4

( I need more time to update it to 6)

create a bundle and load it after, it should overwrite the plone jquery.

Will it break 'other things'?
Do I need to overwrite 'other jquery things', too ?

PS: I tried to 'just overwrite it' in the @@resourceregistry-controlpanel', but that broke the 'control panel'.

(I will set up a test site and try your suggestion)

It depends on jquery support...

It looks like it conflicts with some 'pat' stuff, I am not sure how to (best) find and override those (since it looks like the errors only show if I for example edit a page (autotoc)

If it should be of interest to anyone: I got it working by defining a few things that are 'gone', so I did not have to update 'pat-things'

So I made a small script that defines 'size' as 'lenght' etc., (for example)

$.fn.size = function() {
        return this.length;
    };