CVE-2021-32681
Last modified
CVE-2021-32681 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. Wagtail is an open source content management system built on Django. A cross-site scripting vulnerability exists in versions 2.13-2.13.1, versions 2.12-2.12.4, and versions prior to 2.11.8. EPSS estimates a 1.11% chance of exploitation in the next 30 days.
Description
Wagtail is an open source content management system built on Django. A cross-site scripting vulnerability exists in versions 2.13-2.13.1, versions 2.12-2.12.4, and versions prior to 2.11.8. When the `{% include_block %}` template tag is used to output the value of a plain-text StreamField block (`CharBlock`, `TextBlock` or a similar user-defined block derived from `FieldBlock`), and that block does not specify a template for rendering, the tag output is not properly escaped as HTML. This could allow users to insert arbitrary HTML or scripting. This vulnerability is only exploitable by users with the ability to author StreamField content (i.e. users with 'editor' access to the Wagtail admin). Patched versions have been released as Wagtail 2.11.8 (for the LTS 2.11 branch), Wagtail 2.12.5, and Wagtail 2.13.2 (for the current 2.13 branch). As a workaround, site implementors who are unable to upgrade to a current supported version should audit their use of `{% include_block %}` to ensure it is not used to output `CharBlock` / `TextBlock` values with no associated template. Note that this only applies where `{% include_block %}` is used directly on that block (uses of `include_block` on a block _containing_ a CharBlock / TextBlock, such as a StructBlock, are unaffected). In these cases, the tag can be replaced with Django's `{{ ... }}` syntax - e.g. `{% include_block my_title_block %}` becomes `{{ my_title_block }}`.
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.11.8 |
| Torchbox | Wagtail | >= 2.12, <= 2.12.4 |
| Torchbox | Wagtail | >= 2.13, <= 2.13.1 |
References
- https://github.com/wagtail/wagtail/releases/tag/v2.11.8Exploit, Third Party Advisory
- https://github.com/wagtail/wagtail/releases/tag/v2.12.5Exploit, Third Party Advisory
- https://github.com/wagtail/wagtail/releases/tag/v2.13.2Exploit, Third Party Advisory
- https://github.com/wagtail/wagtail/security/advisories/GHSA-xfrw-hxr5-ghqfMitigation, Third Party Advisory
- https://github.com/wagtail/wagtail/releases/tag/v2.11.8Exploit, Third Party Advisory
- https://github.com/wagtail/wagtail/releases/tag/v2.12.5Exploit, Third Party Advisory
- https://github.com/wagtail/wagtail/releases/tag/v2.13.2Exploit, Third Party Advisory
- https://github.com/wagtail/wagtail/security/advisories/GHSA-xfrw-hxr5-ghqfMitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-32681?
How severe is CVE-2021-32681?
How do I fix CVE-2021-32681?
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 2021
- CVE-2021-32675Redis is an open source, in-memory database that persists on…7.5
- CVE-2021-32676Nextcloud Talk is a fully on-premises audio/video and chat c…6.5
- CVE-2021-32677FastAPI is a web framework for building APIs with Python 3.6…8.1
- CVE-2021-32678Nextcloud Server is a Nextcloud package that handles data st…5.3
- CVE-2021-32679Nextcloud Server is a Nextcloud package that handles data st…8.8
- CVE-2021-32680Nextcloud Server is a Nextcloud package that handles data st…3.3
- CVE-2021-32682elFinder is an open-source file manager for web, written in …9.8
- CVE-2021-32683wire-webapp is the web version of Wire, an open-source messe…6.1
- CVE-2021-32684magento-scripts contains scripts and configuration used by C…5.5
- CVE-2021-32685tEnvoy contains the PGP, NaCl, and PBKDF2 in node.js and the…9.8
- CVE-2021-32686PJSIP is a free and open source multimedia communication lib…5.9
- CVE-2021-32687Redis is an open source, in-memory database that persists on…7.5
Are you affected by CVE-2021-32681?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
