
Little thing put together quickly to demonstrate this CVE
In jQuery versions greater than or equal to 1.2 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.
In jQuery versions greater than or equal to 1.0.3 and before 3.5.0, passing HTML containing elements from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.
sudo php -S 127.0.0.1:80 to spin up a quick server.
sudo python3 -m http.server 8085
If you'd like to fix this CVE in this script then just change the jQuery version to https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.js :)