GHSA-v2wc-pfq2-5cm6

Suggest an improvement
Source
https://github.com/advisories/GHSA-v2wc-pfq2-5cm6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-v2wc-pfq2-5cm6/GHSA-v2wc-pfq2-5cm6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v2wc-pfq2-5cm6
Aliases
Published
2020-04-14T23:09:29Z
Modified
2024-11-19T19:22:12.160731Z
Severity
  • 5.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N CVSS Calculator
  • 4.6 (Medium) CVSS_V4 - 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 CVSS Calculator
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 * Email us at security@wagtail.io (if you wish to send encrypted email, the public key ID is 0x6ba1e1a86e0f8ce8)

Database specific
{
    "nvd_published_at": "2020-04-14T23:15:11Z",
    "cwe_ids": [
        "CWE-79",
        "CWE-80"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2020-04-14T23:02:21Z"
}
References

Affected packages

PyPI / wagtail

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.9.0
Fixed
2.7.2

Affected versions

1.*

1.9
1.9.1
1.10rc1
1.10
1.10.1
1.11rc1
1.11
1.11.1
1.12rc1
1.12
1.12.1
1.12.2
1.12.3
1.12.4
1.12.5
1.12.6
1.13rc1
1.13
1.13.1
1.13.2
1.13.3
1.13.4

2.*

2.0b1
2.0rc1
2.0
2.0.1
2.0.2
2.1rc1
2.1rc2
2.1
2.1.1
2.1.2
2.1.3
2.2rc1
2.2rc2
2.2
2.2.1
2.2.2
2.3rc1
2.3rc2
2.3
2.4rc1
2.4
2.5rc1
2.5
2.5.1
2.5.2
2.6rc1
2.6
2.6.1
2.6.2
2.6.3
2.7rc1
2.7rc2
2.7
2.7.1

PyPI / wagtail

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.8.0
Fixed
2.8.1

Affected versions

2.*

2.8.0
2.8