{"api_version":"1","generated_at":"2026-06-01T20:55:00+00:00","cve":"CVE-2021-29434","urls":{"html":"https://cve.report/CVE-2021-29434","api":"https://cve.report/api/cve/CVE-2021-29434.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-29434","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-29434"},"summary":{"title":"CVE-2021-29434","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).","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-04-19 19:15:00","updated_at":"2021-04-29 14:24:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://pypi.org/project/wagtail/","name":"https://pypi.org/project/wagtail/","refsource":"MISC","tags":[],"title":"wagtail · PyPI","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx","name":"https://github.com/wagtail/wagtail/security/advisories/GHSA-wq5h-f9p5-q7fx","refsource":"CONFIRM","tags":[],"title":"Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields · Advisory · wagtail/wagtail · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29434","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29434","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"29434","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"torchbox","cpe5":"wagtail","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"29434","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"torchbox","cpe5":"wagtail","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"-","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"29434","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"torchbox","cpe5":"wagtail","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"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"}},"nvd":{"publishedDate":"2021-04-19 19:15:00","lastModifiedDate":"2021-04-29 14:24:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":4.8,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.7,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":3.5},"severity":"LOW","exploitabilityScore":6.8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:*","versionStartIncluding":"2.12.0","versionEndExcluding":"2.12.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:torchbox:wagtail:*:*:*:*:lts:*:*:*","versionStartIncluding":"2.11.0","versionEndExcluding":"2.11.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:torchbox:wagtail:*:*:*:*:-:*:*:*","versionEndExcluding":"2.11.6","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"29434","Ordinal":"204638","Title":"CVE-2021-29434","CVE":"CVE-2021-29434","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"29434","Ordinal":"1","NoteData":"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).","Type":"Description","Title":null},{"CveYear":"2021","CveId":"29434","Ordinal":"2","NoteData":"2021-04-19","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"29434","Ordinal":"3","NoteData":"2021-04-19","Type":"Other","Title":"Modified"}]}}}