CVE-2021-29434 json
Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields
published 2021-04-19 5 y ago modified 2026-09-10 1 mo ago also GHSA-wq5h-f9p5-q7fx , PYSEC-2021-114 , EUVD-2021-0462
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 50%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- pypi wagtail 2.11.6, 2.11.7, 2.12.4
- torchbox wagtail 2.11.6, 2.11.7, 2.12.4
Exploit prediction
0.63% chance of exploitation in the next 30 days, higher than 50% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | wagtail | <2.11.7 >=2.12, <2.12.4 >=2.11, <2.11.7 <2.11.6 |
2.11.7 2.12.4 2.11.6 |
Affected products
- wagtail wagtail
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/wagtail/wagtail/commit/5c7a60977cba478f6a35390ba98cffc2bd41c8a4
web
-
github.com
/wagtail/wagtail/commit/915f6ed2bd7d53154103cc4424a0f18695cdad6c
web
-
github.com
/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx
web, mitigation, third-party-advisory, advisory
-
pypi.org
/project/wagtail/
product, third-party-advisory, package
-
nvd.nist.gov
/vuln/detail/CVE-2021-29434
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2021-114.yaml
web
-
github.com
/wagtail/wagtail
package
-
github.com
/wagtail/wagtail/compare/v2.11.6...v2.11.7
web
-
pypi.org
/project/wagtail
web
Sources
- CVE List CVE-2021-29434
- GitHub Advisory GHSA-wq5h-f9p5-q7fx
- NVD CVE-2021-29434
- OSV PYSEC-2021-114
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.