{"id":"GHSA-v2wc-pfq2-5cm6","summary":"Possible XSS attack in Wagtail","details":"### Impact\nA cross-site scripting (XSS) vulnerability exists on the page revision comparison view within the Wagtail admin interface. A user with a limited-permission editor account for the Wagtail admin could potentially craft a page revision history that, when viewed by a user with higher privileges, could perform actions with that user's credentials. The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin.\n\n### Patches\nPatched versions have been released as Wagtail 2.7.2 (for the LTS 2.7 branch) and Wagtail 2.8.1 (for the current 2.8 branch).\n\n### Workarounds\nSite owners who are unable to upgrade to the new versions can disable the revision comparison view by adding the following URL route to the top of their project's `urls.py` configuration:\n\n    from django.views.generic.base import RedirectView\n\n    urlpatterns = [\n        url(r'^admin/pages/(\\d+)/revisions/compare/', RedirectView.as_view(url='/admin/')),\n        # ...\n    ]\n\n### Acknowledgements\nMany thanks to Vlad Gerasimenko for reporting this issue.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Visit Wagtail's [support channels](https://docs.wagtail.io/en/stable/support.html)\n* Email us at [security@wagtail.io](mailto:security@wagtail.io) (if you wish to send encrypted email, the public key ID is `0x6ba1e1a86e0f8ce8`)","aliases":["CVE-2020-11001","PYSEC-2020-152"],"modified":"2026-09-10T03:48:43.980839606Z","published":"2020-04-14T23:09:29Z","database_specific":{"github_reviewed_at":"2020-04-14T23:02:21Z","nvd_published_at":"2020-04-14T23:15:11Z","cwe_ids":["CWE-79","CWE-80"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/wagtail/wagtail/security/advisories/GHSA-v2wc-pfq2-5cm6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11001"},{"type":"WEB","url":"https://github.com/wagtail/wagtail/commit/61045ceefea114c40ac4b680af58990dbe732389"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/wagtail/PYSEC-2020-152.yaml"},{"type":"WEB","url":"https://github.com/wagtail/wagtail/releases/tag/v2.8.1"}],"affected":[{"package":{"name":"wagtail","ecosystem":"PyPI","purl":"pkg:pypi/wagtail"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.9.0"},{"fixed":"2.7.2"}]}],"versions":["1.10","1.10.1","1.10rc1","1.11","1.11.1","1.11rc1","1.12","1.12.1","1.12.2","1.12.3","1.12.4","1.12.5","1.12.6","1.12rc1","1.13","1.13.1","1.13.2","1.13.3","1.13.4","1.13rc1","1.9","1.9.1","2.0","2.0.1","2.0.2","2.0b1","2.0rc1","2.1","2.1.1","2.1.2","2.1.3","2.1rc1","2.1rc2","2.2","2.2.1","2.2.2","2.2rc1","2.2rc2","2.3","2.3rc1","2.3rc2","2.4","2.4rc1","2.5","2.5.1","2.5.2","2.5rc1","2.6","2.6.1","2.6.2","2.6.3","2.6rc1","2.7","2.7.1","2.7rc1","2.7rc2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-v2wc-pfq2-5cm6/GHSA-v2wc-pfq2-5cm6.json"}},{"package":{"name":"wagtail","ecosystem":"PyPI","purl":"pkg:pypi/wagtail"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0"},{"fixed":"2.8.1"}]}],"versions":["2.8","2.8.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-v2wc-pfq2-5cm6/GHSA-v2wc-pfq2-5cm6.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N"}]}