CVE-2021-29434
MEDIUM 4.8CVSS 3.1Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields
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).
- Published
- 19 Apr 2021
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-wq5h-f9p5-q7fxPYSEC-2021-114
- Sources
- NVDJSONOSV GHSA-wq5h-f9p5-q7fxJSONOSV PYSEC-2021-114JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | torchbox | wagtailcpe:2.3:a:torchbox:wagtail:*:*:*:*:-:*:*:* |
< 2.11.6 | 2.11.6 |
| NVD | torchbox | wagtailcpe:2.3:a:torchbox:wagtail:*:*:*:*:lts:*:*:* |
>= 2.11.0, < 2.11.7 | 2.11.7 |
| NVD | torchbox | wagtailcpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:* |
>= 2.12.0, < 2.12.4 | 2.12.4 |
| OSV | PyPI | wagtail | < 2.11.7 | 2.11.7 |
| OSV | PyPI | wagtail | >= 2.12, < 2.12.4 | 2.12.4 |
| OSV | PyPI | wagtail | >= 2.11, < 2.11.7; < 2.11.6; >= 2.12, < 2.12.4 | 2.11.7, 2.11.6, 2.12.4 |
References
- https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx · Mitigation, Third Party Advisory, WEB, ADVISORY
- https://pypi.org/project/wagtail/ · Product, Third Party Advisory, WEB, PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-29434 · ADVISORY
- https://github.com/wagtail/wagtail/commit/5c7a60977cba478f6a35390ba98cffc2bd41c8a4 · WEB
- https://github.com/wagtail/wagtail/commit/915f6ed2bd7d53154103cc4424a0f18695cdad6c · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2021-114.yaml · WEB
- https://github.com/wagtail/wagtail · PACKAGE
- https://github.com/wagtail/wagtail/compare/v2.11.6...v2.11.7 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 19 Apr 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Apr 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Apr 2021)