Vulnerability · Published Apr 3, 2023 · Assigned by GitHub_M

CVE-2023-28836Wagtail vulnerable to stored Cross-site Scripting attack via ModelAdmin views

Medium 6.4

In plain English

A medium-severity cross-site scripting in wagtail from wagtail. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.4Medium
Exploit odds (30 days)0.8%top 44.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Wagtail is an open source content management system built on Django. Starting in version 1.5 and prior to versions 4.1.4 and 4.2.2, a stored cross-site scripting (XSS) vulnerability exists on ModelAdmin views within the Wagtail admin interface. A user with a limited-permission editor account for the Wagtail admin could potentially craft pages and documents 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, and only affects sites with ModelAdmin enabled. For page, the vulnerability is in the "Choose a parent page" ModelAdmin view (`ChooseParentView`), available when managing pages via ModelAdmin. For documents, the vulnerability is in the ModelAdmin Inspect view (`InspectView`) when displaying document fields. Patched versions have been released as Wagtail 4.1.4 and Wagtail 4.2.2. Site owners who are unable to upgrade to the new versions can disable or override the corresponding functionality.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIwagtail4.1.4GHSA-5286-f2rf-35c2
PyPIwagtail4.2.2GHSA-5286-f2rf-35c2
PyPIwagtail4.1.4, 4.2.2PYSEC-2023-55

Affected products (as reported)

VendorProductVersions
wagtail wagtail 1.5 – before 1.5*4.1.1 – before 4.1.14.2 – before 4.2*4.2.2 – before 4.2.2

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H

References