CVE-2020-15118
Python vulnerability analysis and mitigation

Overview

CVE-2020-15118 affects Wagtail versions before 2.7.4 and 2.9.3, where HTML injection was possible through form field help text in the wagtail.contrib.forms form builder app. The vulnerability was discovered and disclosed on July 20, 2020 (GitHub Advisory).

Technical details

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 would be rendered unescaped in the page. While allowing HTML within help text is an intentional design decision by Django, Wagtail's policy is to not allow editors to insert arbitrary HTML by default to prevent potential cross-site scripting attacks (GitHub Advisory).

Impact

The vulnerability could potentially be used to carry out cross-site scripting attacks, including privilege escalation. However, the vulnerability is not exploitable by ordinary site visitors without access to the Wagtail admin interface (GitHub Advisory).

Mitigation and workarounds

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 is escaped by default to prevent the inclusion of HTML tags. Site owners who wish to re-enable HTML in help text can set WAGTAILFORMS_HELP_TEXT_ALLOW_HTML = True in their configuration settings. For those unable to upgrade, forms can be secured by rendering them field-by-field as per Django's documentation, omitting the |safe filter when outputting help text (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-70492HIGH8.7
  • Python logoPython
  • cpe:2.3:a:openwebui:open_webui
NoYesAug 04, 2026
CVE-2026-70494HIGH8.1
  • Python logoPython
  • cpe:2.3:a:openwebui:open_webui
NoYesAug 04, 2026
CVE-2026-70493MEDIUM6.5
  • Python logoPython
  • cpe:2.3:a:openwebui:open_webui
NoYesAug 04, 2026
CVE-2026-70491MEDIUM6.5
  • Python logoPython
  • cpe:2.3:a:openwebui:open_webui
NoYesAug 04, 2026
CVE-2026-70490MEDIUM6.3
  • Python logoPython
  • cpe:2.3:a:openwebui:open_webui
NoYesAug 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management