{"cve":"CVE-2021-29434","nvd":{"published":"2021-04-19T19:15:17.610","modified":"2026-06-17T03:47:38.060","status":"Modified","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).","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8},"cwes":["CWE-79"],"references":["https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx","https://pypi.org/project/wagtail/","https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx","https://pypi.org/project/wagtail/"],"products":["torchbox:wagtail"],"source":"nvd","synced_at":"2026-10-19T21:17:01.373894544+00:00"},"epss":{"cve":"CVE-2021-29434","score":0.00626,"percentile":0.50022,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-wq5h-f9p5-q7fx","url":"https://osv.dev/vulnerability/GHSA-wq5h-f9p5-q7fx","summary":"Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields","modified":"2026-09-10T03:49:26.868402781Z","packages":[{"ecosystem":"PyPI","name":"wagtail","purl":"pkg:pypi/wagtail","ranges":["<2.11.7"],"fixed":["2.11.7"]},{"ecosystem":"PyPI","name":"wagtail","purl":"pkg:pypi/wagtail","ranges":[">=2.12 <2.12.4"],"fixed":["2.12.4"]}]},{"id":"PYSEC-2021-114","url":"https://osv.dev/vulnerability/PYSEC-2021-114","summary":"","modified":"2023-11-08T04:05:33.896694Z","packages":[{"ecosystem":"PyPI","name":"wagtail","purl":"pkg:pypi/wagtail","ranges":[">=2.11 <2.11.7","<2.11.6",">=2.12 <2.12.4"],"fixed":["2.11.7","2.11.6","2.12.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}