Live threats

All CVEs / Torchbox

CVE-2021-29434Torchbox Wagtail

Medium 4.8

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).

Original NVD text.

What to do

  1. Apply the vendor's security update for Wagtail.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
torchboxwagtail< 2.11.6
torchboxwagtail≥ 2.11.0 < 2.11.7
torchboxwagtail≥ 2.12.0 < 2.12.4

Official sources

References

Links published by the sources. Open them with care.