Security mailing lists by PureSourceCode

CVE-2020-15118

MEDIUM 5.4CVSS 3.1

Cross-Site Scripting in Wagtail

In Wagtail before versions 2.7.4 and 2.9.3, when a form page type is made available to Wagtail editors through the wagtail.contrib.forms app, and the page template is built using Django's standard form rendering helpers such as form.as_p, 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; 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. Patched versions have been released as Wagtail 2.7.4 (for the LTS 2.7 branch) and Wagtail 2.9.3 (for the current 2.9 branch). In these versions, help text will be escaped to prevent the inclusion of HTML tags. 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. Site owners who are unable to upgrade to the new versions can secure their form page templates by rendering forms field-by-field as per Django's documentation, but omitting the |safe filter when outputting the help text.

Published
20 Jul 2020
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-2473-9hgq-j7xwPYSEC-2020-154
Sources
NVDJSONOSV GHSA-2473-9hgq-j7xwJSONOSV PYSEC-2020-154JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.7 CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.7 CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 3.5 AV:N/AC:M/Au:S/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD torchbox wagtail
cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:*
>= 2.7, < 2.7.4 2.7.4
NVD torchbox wagtail
cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:*
>= 2.9, < 2.9.3 2.9.3
OSV PyPI wagtail >= 2.8rc1, < 2.9.3 2.9.3
OSV PyPI wagtail < 2.7.4 2.7.4
OSV PyPI wagtail >= 2.7, < 2.7.4; >= 2.9, < 2.9.3 2.7.4, 2.9.3

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 20 Jul 2020)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Jul 2020)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Jul 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.