summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-11-27 16:13:05 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-11-27 16:13:05 +0100
commit8a6af740bc499d93211275aba9fef96a3b6c554c (patch)
tree59cec968f97249fbb2d9eb10bf5b7b6431f79fc4 /ishtar_common
parent33c435052bd891ccb54b71b978a8b919d28f0ce1 (diff)
downloadIshtar-8a6af740bc499d93211275aba9fef96a3b6c554c.tar.bz2
Ishtar-8a6af740bc499d93211275aba9fef96a3b6c554c.zip
🔒️ fix security issue for jQuery CVE-2019-11358
https://github.com/jquery/jquery/commit/753d591aea698e57d6db58c9f722cd0808619b1b
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/static/js/jquery.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/static/js/jquery.js b/ishtar_common/static/js/jquery.js
index 7fc60fca7..ec2f79ff9 100644
--- a/ishtar_common/static/js/jquery.js
+++ b/ishtar_common/static/js/jquery.js
@@ -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;
}