GHSA-v2wc-pfq2-5cm6

    Dashboard / Vulnerabilities / GHSA-v2wc-pfq2-5cm6

    GHSA-v2wc-pfq2-5cm6

    Published: 14 Apr 2020Last Modified: 10 Sept 2026

    Summary: Possible XSS attack in Wagtail

    Details: ### Impact A 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. ### Patches Patched 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). ### Workarounds Site 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: from django.views.generic.base import RedirectView urlpatterns = [ url(r'^admin/pages/(\d+)/revisions/compare/', RedirectView.as_view(url='/admin/')), # ... ] ### Acknowledgements Many thanks to Vlad Gerasimenko for reporting this issue. ### For more information If you have any questions or comments about this advisory: * Visit Wagtail's [support channels](https://docs.wagtail.io/en/stable/support.html) * Email us at [[email protected]](mailto:[email protected]) (if you wish to send encrypted email, the public key ID is `0x6ba1e1a86e0f8ce8`)

    Affected packages

    Package

    Name: wagtail

    Purl: pkg:pypi/wagtail

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 1.9.0
    Fixed -2.7.2

    Affected versions

    1.10
    1.10.1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-v2wc-pfq2-5cm6 | CVE-DB