CVE-2021-29434
published medium CVSS 3.1 · 6.1Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| wagtail | — | wagtail<= 2.11.6 · >= 2.12, <= 2.12.3 | Affected | Not stated | GitHub_M |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| wagtail | wagtail | <= 2.11.6 (affected)>= 2.12, <= 2.12.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 {"CWE-79":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}
References
2Provider assertions
2GitHub_M · cna
Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 28d3a675999ef6edc2633ca01c25db69b2fa245303311054393e550c27b8cda9
- Ingested
- 23 Sep 2026, 07:53:47 UTC
- Source record
- Official CVE record