All vulnerabilities

Servers and applications

CVE-2021-29434

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

Severity
Medium 4.8
Published
19 Apr 2021
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.11.6, 2.11.7, 2.12.4
Also known as
GHSA-wq5h-f9p5-q7fx
Sources
NVD, Project advisories (GitHub)

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…

Affected software

SoftwareAffected versions
WagtailServers and applications · cpe:a:torchbox:wagtail
  • Every version before 2.11.6
  • From 2.11.0 before 2.11.7
  • From 2.12.0 before 2.12.4
WagtailServers and applications · github:wagtail/wagtail
  • From 2.12 before 2.11.6

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-29434
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-29434
  • GitHub Advisory Database https://github.com/advisories/GHSA-wq5h-f9p5-q7fx
  • github.com https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx