Skip to content

fix all CVEs in 1.12.4 #9

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

Open
wants to merge 46 commits into
base: 1.12.4-branch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ee931ed
Include distribution in release tag
timmywil Feb 12, 2014
13e9cde
Include distribution in release tag
timmywil Feb 12, 2014
9b20df0
Include distribution in release tag
timmywil Feb 12, 2014
dbce0ce
Include distribution in release tag
timmywil Feb 12, 2014
2888cae
Include distribution in release tag
timmywil Feb 12, 2014
17eeebb
Include distribution in release tag
timmywil Feb 12, 2014
2af1538
Make compatible with latest JSHint.
dmethvin Oct 24, 2012
8e76cb7
Update build script.
dmethvin Oct 24, 2012
c56732f
Ensure each tick gets it's own fxNow - Fixes #12837 - Thanks @chadparry
gnarf Nov 8, 2012
bee4d03
Keep track of a hiding state for toggle based animations - Fixes #8685
gnarf Nov 8, 2012
986d0f5
Fixing units
gnarf Nov 8, 2012
08894dc
Rewriting unit test to be less sticky based on time issues
gnarf Nov 8, 2012
70f662b
Unroll the ( || ) in the math - Fixes #12497 - Thanks @lukemelia @cur…
gnarf Nov 8, 2012
ab409d1
Tagging the 1.8.3 release.
dmethvin Nov 13, 2012
869704b
Include distribution in release tag
timmywil Feb 12, 2014
af543e2
🔒️ fix CVE-2015-9251
ctcpip Dec 11, 2023
eb69988
🔒️ fix CVE-2012-6708
ctcpip Dec 11, 2023
ab024c1
🔒️ fix CVE-2019-11358
ctcpip Dec 11, 2023
a92926c
🔒️ fix CVE-2020-11022
ctcpip Dec 11, 2023
e5a5d49
🔒️ fix CVE-2020-11023
ctcpip Dec 11, 2023
9048c5a
🔒️ fix CVE-2020-7656
ctcpip Dec 11, 2023
ac067d7
fix support reference
ctcpip Dec 15, 2023
fe5ca13
fix script regex
ctcpip Dec 15, 2023
08ffd65
test fixes
ctcpip Dec 18, 2023
c70c7ba
🔒️ fix CVE-2011-4969
ctcpip Dec 20, 2023
8bdec18
🔒️ fix CVE-2012-6708
ctcpip Dec 20, 2023
654d925
🔒️ fix CVE-2019-11358
ctcpip Dec 21, 2023
ae1140f
🔒️ fix CVE-2020-11022
ctcpip Dec 21, 2023
8158bf0
🔒️ fix CVE-2020-7656
ctcpip Feb 10, 2024
6767dbc
🔒️ fix CVE-2020-11023
ctcpip Feb 10, 2024
8f1483b
💚 commit built jquery from latest
ctcpip Feb 15, 2024
f400223
Merge branch '1.2.7-sec' into 1.3.3-sec
ctcpip Feb 15, 2024
5affbad
Merge branch '1.3.3-sec' into 1.4.5-sec
ctcpip Feb 15, 2024
d0fef0a
✅ fix tests
ctcpip Feb 15, 2024
634d27d
🔒️ fix CVE-2015-9251
ctcpip Feb 16, 2024
fa65c2b
♻️ update old node code, prevent jslint exception
ctcpip Feb 16, 2024
6446298
Merge branch '1.4.5-sec' into 1.5.3-sec
ctcpip Feb 16, 2024
3877721
Merge branch '1.5.3-sec' into 1.6.5-sec
ctcpip Feb 16, 2024
d412a7b
Merge branch '1.6.5-sec' into 1.7.3-sec
ctcpip Feb 16, 2024
2d4663e
🚑️ Grunty McGruntface
ctcpip Feb 17, 2024
acf0b3b
Merge branch '1.7.3-sec' into 1.8.4-sec
ctcpip Feb 17, 2024
e630ae7
🐛 fix rquickExpr and update test
ctcpip Feb 17, 2024
94181d3
🔧 override graceful-fs version
ctcpip Feb 17, 2024
eff57de
Merge branch '1.8.4-sec' into 1.12.5-sec
ctcpip Feb 18, 2024
01070c7
🔧 add nginx config
ctcpip Feb 18, 2024
ed0b5b9
🔒️ fix CVE-2020-11022
ctcpip Feb 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions dist/jquery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery JavaScript Library v1.12.4
* jQuery JavaScript Library v1.12.5-sec
* http://jquery.com/
*
* Includes Sizzle.js
Expand All @@ -9,7 +9,7 @@
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
* Date: 2024-02-18T08:52Z
*/

(function( global, factory ) {
Expand Down Expand Up @@ -65,7 +65,7 @@ var support = {};


var
version = "1.12.4",
version = "1.12.5-sec",

// Define a local copy of jQuery
jQuery = function( selector, context ) {
Expand Down Expand Up @@ -209,8 +209,9 @@ jQuery.extend = jQuery.fn.extend = function() {
src = target[ name ];
copy = options[ name ];

// Prevent Object.prototype pollution
// Prevent never-ending loop
if ( target === copy ) {
if ( name === "__proto__" || target === copy ) {
continue;
}

Expand Down Expand Up @@ -2859,9 +2860,10 @@ jQuery.fn.extend( {
var rootjQuery,

// A simple way to check for HTML strings
// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
// Strict HTML recognition (#11290: must start with <)
rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
// Prioritize #id over <tag> to avoid XSS via location.hash (trac-9521)
// Strict HTML recognition (trac-11290: must start with <)
// Shortcut simple #id case for speed
rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,

init = jQuery.fn.init = function( selector, context, root ) {
var match, elem;
Expand Down Expand Up @@ -4522,7 +4524,6 @@ function createSafeFragment( document ) {

// We have to close these tags to support XHTML (#13200)
var wrapMap = {
option: [ 1, "<select multiple='multiple'>", "</select>" ],
legend: [ 1, "<fieldset>", "</fieldset>" ],
area: [ 1, "<map>", "</map>" ],

Expand All @@ -4538,9 +4539,6 @@ var wrapMap = {
_default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]
};

// Support: IE8-IE9
wrapMap.optgroup = wrapMap.option;

wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;

Expand Down Expand Up @@ -5871,7 +5869,6 @@ jQuery.fn.extend( {

var rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
rnoshimcache = new RegExp( "<(?:" + nodeNames + ")[\\s/>]", "i" ),
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,

// Support: IE 10-11, Edge 10240+
// In IE/Edge using regex groups here causes severe slowdowns.
Expand Down Expand Up @@ -6127,7 +6124,7 @@ function remove( elem, selector, keepData ) {

jQuery.extend( {
htmlPrefilter: function( html ) {
return html.replace( rxhtmlTag, "<$1></$2>" );
return html;
},

clone: function( elem, dataAndEvents, deepDataAndEvents ) {
Expand Down Expand Up @@ -10358,6 +10355,13 @@ function createActiveXHR() {



// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
jQuery.ajaxPrefilter( function( s ) {
if ( s.crossDomain ) {
s.contents.script = false;
}
} );

// Install script dataType
jQuery.ajaxSetup( {
accepts: {
Expand Down
10 changes: 5 additions & 5 deletions dist/jquery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jquery.min.map

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
worker_processes 1;

events { worker_connections 64; }

http {
include /opt/homebrew/etc/nginx/mime.types;

server {
set $dir /path/to/jquery/repo/root;

# php-fpm endpoint
set $cgi 127.0.0.1:9000;

access_log /tmp/jquery_access.log;
error_log /tmp/jquery_error.log;

listen 80;
server_name localhost;

root $dir;

# enable POSTs to HTML
error_page 405 = $uri;
location @405 {
root $dir;
}

location ~ \.php {
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;

fastcgi_pass $cgi;
}
}
}
Loading