CVE-2021-29434

Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields

MEDIUM
4.8
CVSS Score
Published: April 19, 2021 at 06:45 PM UTC
Updated: June 17, 2026 at 03:47 AM UTC
2 products affected across 2 vendorsWagtailWagtail

Using wagtail by wagtail?

Get instant alerts when new vulnerabilities affect wagtail - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.8
Exploit prediction
EPSS 0.6%

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.11.62.11.0 ≤ v < 2.11.72.12.0 ≤ v < 2.12.4
Affected range stops below 2.11.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.11.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.12.4, so it looks safe — our inference, not a vendor statement
v ≤ 2.12.3<= 2.11.6

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

x_refsource_MISCProductThird Party Advisory
https://pypi.org/project/wagtail/

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
HIGH
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card