5.4
MEDIUM
CVE-2021-32681
Wagtail Cross-Site Scripting Vulnerability
Description

Wagtail is an open source content management system built on Django. A cross-site scripting vulnerability exists in versions 2.13-2.13.1, versions 2.12-2.12.4, and versions prior to 2.11.8. When the `{% include_block %}` template tag is used to output the value of a plain-text StreamField block (`CharBlock`, `TextBlock` or a similar user-defined block derived from `FieldBlock`), and that block does not specify a template for rendering, the tag output is not properly escaped as HTML. This could allow users to insert arbitrary HTML or scripting. This vulnerability is only exploitable by users with the ability to author StreamField content (i.e. users with 'editor' access to the Wagtail admin). Patched versions have been released as Wagtail 2.11.8 (for the LTS 2.11 branch), Wagtail 2.12.5, and Wagtail 2.13.2 (for the current 2.13 branch). As a workaround, site implementors who are unable to upgrade to a current supported version should audit their use of `{% include_block %}` to ensure it is not used to output `CharBlock` / `TextBlock` values with no associated template. Note that this only applies where `{% include_block %}` is used directly on that block (uses of `include_block` on a block _containing_ a CharBlock / TextBlock, such as a StructBlock, are unaffected). In these cases, the tag can be replaced with Django's `{{ ... }}` syntax - e.g. `{% include_block my_title_block %}` becomes `{{ my_title_block }}`.

INFO

Published Date :

June 17, 2021, 5:15 p.m.

Last Modified :

June 23, 2021, 12:28 p.m.

Remotely Exploitable :

Yes !

Impact Score :

2.7

Exploitability Score :

2.3
Affected Products

The following products are affected by CVE-2021-32681 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Torchbox wagtail
1 Wagtail wagtail
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-32681.

URL Resource
https://github.com/wagtail/wagtail/releases/tag/v2.11.8 Exploit Third Party Advisory
https://github.com/wagtail/wagtail/releases/tag/v2.12.5 Exploit Third Party Advisory
https://github.com/wagtail/wagtail/releases/tag/v2.13.2 Exploit Third Party Advisory
https://github.com/wagtail/wagtail/security/advisories/GHSA-xfrw-hxr5-ghqf Mitigation Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-32681 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-32681 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Jun. 23, 2021

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:N/AC:M/Au:S/C:N/I:P/A:N)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://github.com/wagtail/wagtail/releases/tag/v2.11.8 No Types Assigned https://github.com/wagtail/wagtail/releases/tag/v2.11.8 Exploit, Third Party Advisory
    Changed Reference Type https://github.com/wagtail/wagtail/releases/tag/v2.12.5 No Types Assigned https://github.com/wagtail/wagtail/releases/tag/v2.12.5 Exploit, Third Party Advisory
    Changed Reference Type https://github.com/wagtail/wagtail/releases/tag/v2.13.2 No Types Assigned https://github.com/wagtail/wagtail/releases/tag/v2.13.2 Exploit, Third Party Advisory
    Changed Reference Type https://github.com/wagtail/wagtail/security/advisories/GHSA-xfrw-hxr5-ghqf No Types Assigned https://github.com/wagtail/wagtail/security/advisories/GHSA-xfrw-hxr5-ghqf Mitigation, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:* versions up to (excluding) 2.11.8 *cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:* versions from (including) 2.12 up to (including) 2.12.4 *cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:* versions from (including) 2.13 up to (including) 2.13.1
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-32681 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-32681 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.15 }} 0.00%

score

0.49610

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability