CVE-2020-15118
Last modified
CVE-2020-15118 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. 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. EPSS estimates a 1.08% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Torchbox | Wagtail | >= 2.7, < 2.7.4 |
| Torchbox | Wagtail | >= 2.9, < 2.9.3 |
References
- https://github.com/wagtail/wagtail/blob/master/docs/releases/2.9.3.rstRelease Notes, Third Party Advisory
- https://github.com/wagtail/wagtail/commit/d9a41e7f24d08c024acc9a3094940199df94db34Patch, Third Party Advisory
- https://github.com/wagtail/wagtail/security/advisories/GHSA-2473-9hgq-j7xwThird Party Advisory
- https://github.com/wagtail/wagtail/blob/master/docs/releases/2.9.3.rstRelease Notes, Third Party Advisory
- https://github.com/wagtail/wagtail/commit/d9a41e7f24d08c024acc9a3094940199df94db34Patch, Third Party Advisory
- https://github.com/wagtail/wagtail/security/advisories/GHSA-2473-9hgq-j7xwThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-15118?
How severe is CVE-2020-15118?
How do I fix CVE-2020-15118?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-15111In Fiber before version 1.12.6, the filename that is given i…5.4
- CVE-2020-15112In etcd before versions 3.3.23 and 3.4.10, it is possible to…6.5
- CVE-2020-15113In etcd before versions 3.3.23 and 3.4.10, certain directory…7.1
- CVE-2020-15114In etcd before versions 3.3.23 and 3.4.10, the etcd gateway …7.7
- CVE-2020-15115etcd before versions 3.3.23 and 3.4.10 does not perform any …7.5
- CVE-2020-15117In Synergy before version 1.12.0, a Synergy server can be cr…6.5
- CVE-2020-15119In auth0-lock versions before and including 11.25.1, dangero…5.4
- CVE-2020-1512An information disclosure vulnerability exists when the Wind…7.8
- CVE-2020-15120In "I hate money" before version 4.1.5, an authenticated mem…4.9
- CVE-2020-15121In radare2 before version 4.5.0, malformed PDB file names in…9.6
- CVE-2020-15123In codecov (npm package) before version 3.7.1 the upload met…9.3
- CVE-2020-15124In Goobi Viewer Core before version 4.8.3, a path traversal …6.5
Are you affected by CVE-2020-15118?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
