Skip to content

Commit

Permalink
Release note for 2.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Jul 20, 2020
1 parent 71dc3c1 commit 70719a9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

2.7.4 (20.07.2020)
~~~~~~~~~~~~~~~~~~

* Fix: CVE-2020-15118 - prevent HTML injection through form field help text (Timothy Bautista, Matt Westcott)
* Fix: Expand Pillow dependency range to include 7.x (Harris Lapiroff, Matt Westcott)


2.7.3 (04.05.2020)
~~~~~~~~~~~~~~~~~~

Expand Down
20 changes: 20 additions & 0 deletions docs/releases/2.7.4.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
===========================
Wagtail 2.7.4 release notes
===========================

CVE-2020-15118: HTML injection through form field help text
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This release addresses an HTML injection vulnerability through help text in the ``wagtail.contrib.forms`` form builder app. When a form page type is made available to Wagtail editors, and the page template is built using Django's standard form rendering helpers such as ``form.as_p`` :ref:`(as directed in the documentation) <form_builder_usage>`, any HTML tags used within a form field's help text will be rendered unescaped in the page. Allowing HTML within help text is `an intentional design decision by Django <https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.Field.help_text>`_; however, as a matter of policy Wagtail does not allow editors to insert arbitrary HTML by default, as this could potentially be used to carry out cross-site scripting attacks, including privilege escalation. This functionality should therefore not have been made available to editor-level users.

The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin.

Site owners who wish to re-enable the use of HTML within help text (and are willing to accept the risk of this being exploited by editors) may set ``WAGTAILFORMS_HELP_TEXT_ALLOW_HTML = True`` in their configuration settings.

Many thanks to Timothy Bautista for reporting this issue.


Additional fixes
~~~~~~~~~~~~~~~~

* Expand Pillow dependency range to include 7.x (Harris Lapiroff, Matt Westcott)
1 change: 1 addition & 0 deletions docs/releases/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Release notes
:maxdepth: 1

upgrading
2.7.4
2.7.3
2.7.2
2.7.1
Expand Down

0 comments on commit 70719a9

Please sign in to comment.