diff --git a/.gitmodules b/.gitmodules
index 19c60418e3..2c37e3ae62 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,6 @@
[submodule "src/sizzle"]
path = src/sizzle
- url = git://github.com/jquery/sizzle.git
+ url = https://github.com/jquery/sizzle.git
[submodule "test/qunit"]
path = test/qunit
- url = git://github.com/jquery/qunit.git
+ url = https://github.com/qunitjs/qunit.git
diff --git a/bower.json b/bower.json
index 32edabdbf4..716ece0f11 100755
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name" : "jquery",
- "version" : "1.7.2",
+ "version" : "1.7.3-sec",
"main" : "./jquery.js",
"dependencies": {
}
diff --git a/component.json b/component.json
new file mode 100755
index 0000000000..29d893ac65
--- /dev/null
+++ b/component.json
@@ -0,0 +1,8 @@
+{
+ "name" : "jquery",
+ "version" : "1.6.5-sec",
+ "main" : "./jquery.js",
+ "dependencies": {
+ }
+}
+
diff --git a/jquery.js b/jquery.js
index 3774ff9861..6853389c99 100755
--- a/jquery.js
+++ b/jquery.js
@@ -1,5 +1,5 @@
/*!
- * jQuery JavaScript Library v1.7.2
+ * jQuery JavaScript Library v1.7.3-sec
* http://jquery.com/
*
* Copyright 2011, John Resig
@@ -11,7 +11,7 @@
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*
- * Date: Wed Mar 21 12:46:34 2012 -0700
+ * Date: Fri Feb 16 00:55:01 2024 -0600
*/
(function( window, undefined ) {
@@ -38,7 +38,8 @@ var jQuery = function( selector, context ) {
// A simple way to check for HTML strings or ID strings
// Prioritize #id over to avoid XSS via location.hash (#9521)
- quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
+ // Strict HTML recognition (#11290: must start with <)
+ quickExpr = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,
// Check if a string has a non-whitespace character in it
rnotwhite = /\S/,
@@ -210,7 +211,7 @@ jQuery.fn = jQuery.prototype = {
selector: "",
// The current version of jQuery being used
- jquery: "1.7.2",
+ jquery: "1.7.3-sec",
// The default length of a jQuery object is 0
length: 0,
@@ -355,8 +356,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;
}
@@ -5735,7 +5737,6 @@ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca
"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
rleadingWhitespace = /^\s+/,
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
rtagName = /<([\w:]+)/,
rtbody = /" ],
legend: [ 1, "" ],
thead: [ 1, "" ],
tr: [ 2, "" ],
@@ -5758,7 +5758,6 @@ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca
},
safeFragment = createSafeFragment( document );
-wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
@@ -5936,13 +5935,10 @@ jQuery.fn.extend({
null;
}
-
if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
!wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
- value = value.replace( rxhtmlTag, "<$1>$2>" );
-
try {
for (; i < l; i++ ) {
// Remove element nodes and prevent memory leaks
@@ -6387,8 +6383,6 @@ jQuery.extend({
if ( !rhtml.test( elem ) ) {
elem = context.createTextNode( elem );
} else {
- // Fix "XHTML"-style tags in all browsers
- elem = elem.replace(rxhtmlTag, "<$1>$2>");
// Trim whitespace, otherwise indexOf won't work as expected
var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
@@ -6979,7 +6973,7 @@ var r20 = /%20/g,
rnoContent = /^(?:GET|HEAD)$/,
rprotocol = /^\/\//,
rquery = /\?/,
- rscript = /