CVE-2021-32681: Cross-site Scripting in wagtail
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.52383%
CWE
Published
6/17/2021
Updated
11/19/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
wagtail | pip | < 2.11.8 | 2.11.8 |
wagtail | pip | >= 2.12, < 2.12.5 | 2.12.5 |
wagtail | pip | >= 2.13, < 2.13.2 | 2.13.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the {% include_block %}
template tag's handling of FieldBlock-derived values without custom templates. The advisory explicitly states this tag's output isn't properly escaped for these cases. The workaround (using Django's {{ }} syntax which auto-escapes) confirms the issue lies in the template tag's escaping logic. The patched versions would have modified this function to add proper escaping, and the CWE-79 classification directly maps to missing output encoding in template rendering.