1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Applied jQuery patch for CVE-2019-11358.

This commit is contained in:
Carlton Gibson
2019-05-27 11:07:46 +02:00
parent deeba6d920
commit 34ec52269a
4 changed files with 25 additions and 2 deletions

View File

@@ -19,3 +19,14 @@ payload, could result in an clickable JavaScript link.
link. You may customise the validator by passing a ``validator_class`` kwarg to
``AdminURLFieldWidget.__init__()``, e.g. when using
:attr:`~django.contrib.admin.ModelAdmin.formfield_overrides`.
Patched bundled jQuery for CVE-2019-11358: Prototype pollution
--------------------------------------------------------------
jQuery before 3.4.0, mishandles ``jQuery.extend(true, {}, ...)`` because of
``Object.prototype`` pollution. If an unsanitized source object contained an
enumerable ``__proto__`` property, it could extend the native
``Object.prototype``.
The bundled version of jQuery used by the Django admin has been patched to
allow for the ``select2`` library's use of ``jQuery.extend()``.