{"id":"CVE-2021-29434","state":"PUBLISHED","title":"Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields","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).","publishedAt":"2021-04-19T18:45:14.000Z","updatedAt":"2024-08-03T22:02:51.911Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["wagtail wagtail"],"affected":[{"vendor":"wagtail","product":"wagtail","versions":[{"version":"<= 2.11.6","status":"affected"},{"version":">= 2.12, <= 2.12.3","status":"affected"}]}],"references":["https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx","https://pypi.org/project/wagtail/"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:48:21.578Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/29xxx/CVE-2021-29434.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-29434","state":"PUBLISHED","datePublished":"2021-04-19T18:45:14.000Z","dateUpdated":"2024-08-03T22:02:51.911Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-03-30T00:00:00.000Z"},"containers":{"cna":{"title":"Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields","descriptions":[{"lang":"en","value":"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)."}],"affected":[{"vendor":"wagtail","product":"wagtail","versions":[{"version":"<= 2.11.6","status":"affected"},{"version":">= 2.12, <= 2.12.3","status":"affected"}]}],"references":[{"url":"https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx","tags":["x_refsource_CONFIRM"]},{"url":"https://pypi.org/project/wagtail/","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"{\"CWE-79\":\"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\"}","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-04-19T18:45:14.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-wq5h-f9p5-q7fx","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-29434","STATE":"PUBLIC","TITLE":"Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"wagtail","version":{"version_data":[{"version_value":"<= 2.11.6"},{"version_value":">= 2.12, <= 2.12.3"}]}}]},"vendor_name":"wagtail"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"{\"CWE-79\":\"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\"}"}]}]},"references":{"reference_data":[{"name":"https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx","refsource":"CONFIRM","url":"https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx"},{"name":"https://pypi.org/project/wagtail/","refsource":"MISC","url":"https://pypi.org/project/wagtail/"}]},"source":{"advisory":"GHSA-wq5h-f9p5-q7fx","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://pypi.org/project/wagtail/","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T22:02:51.911Z"}}]}}}