CVE-2021-29434Torchbox Wagtail
Medium 4.8
Follow: this CVE · Torchbox · Torchbox Wagtail We alert you by email or Slack (account required).
- Priority
- 29
- CVSS 3.1
- 4.8
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 51
- Auth required
- Yes
- Published
- Apr 19, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
What happens
Wagtail is a Django content management system. In affected versions of Wagtail, when saving the contents of a rich text field in the admin interface, Wagtail does not apply server-side checks to ensure that link URLs use a valid protocol. A malicious user with access to the admin interface could thus craft a POST request to publish content with `javascript:` URLs containing arbitrary code. The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin. See referenced GitHub advisory for additional details, including a workaround. Patched versions have been released as Wagtail 2.11.7 (for the LTS 2.11 branch) and Wagtail 2.12.4 (for the current 2.12 branch).
What to do
- Apply the vendor's security update for Wagtail.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | wagtail |
< 2.11.7 |
2.11.7 |
pip install "wagtail>=2.11.7" |
| PyPI | wagtail |
≥ 2.12 < 2.12.4 |
2.12.4 |
pip install "wagtail>=2.12.4" |
| PyPI | wagtail |
≥ 2.11 < 2.11.7 |
2.11.7 |
pip install "wagtail>=2.11.7" |
| PyPI | wagtail |
< 2.11.6 |
2.11.6 |
pip install "wagtail>=2.11.6" |
| PyPI | wagtail |
≥ 2.12 < 2.12.4 |
2.12.4 |
pip install "wagtail>=2.12.4" |
Per OSV / GitHub Advisories (GHSA-wq5h-f9p5-q7fx, PYSEC-2021-114). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| torchbox | wagtail | < 2.11.6 |
| torchbox | wagtail | ≥ 2.11.0 < 2.11.7 |
| torchbox | wagtail | ≥ 2.12.0 < 2.12.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Mitigation Third Party Advisory
- pypi.org Product Third Party Advisory