Średnia

Wagtail Vulnerable to Cross-site Scripting in TableBlock class attributes

  • Ujawniono: 03.03.2026
  • Aktualizacja: 11.10.2026 14:17

Impact

A stored Cross-site Scripting (XSS) vulnerability exists on rendering TableBlock blocks within a StreamField. A user with access to create or edit pages containing TableBlock StreamField blocks is able to set specially-crafted class attributes on the block which run arbitrary JavaScript code when the page is viewed. When viewed by a user with higher privileges, this could lead to performing 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 using TableBlock.

Patches

Patched versions have been released as Wagtail 6.3.8, 7.0.6, 7.2.3 and 7.3.1.

Workarounds

Site owners who are unable to upgrade to the new versions can remediate the vulnerability by setting a template attribute on all TableBlock definitions, referencing a template that does not output class attributes. For example:

django
<!-- For use with TableBlock(template="path/to/table_block.html") -->
<table>
    {% if table_caption %}
        <caption>{{ table_caption }}</caption>
    {% endif %}
    {% if table_header %}
        <thead>
            <tr>
                {% for cell in table_header %}
                    <th scope="col">{{ cell }}</th>
                {% endfor %}
            </tr>
        </thead>
    {% endif %}
    <tbody>
        {% for row in data %}
            <tr>
                {% for cell in row %}
                    {% if first_col_is_header and forloop.first %}
                        <th scope="row">{{ cell }}</th>
                    {% else %}
                        <td>{{ cell }}</td>
                    {% endif %}
                {% endfor %}
            </tr>
        {% endfor %}
    </tbody>
</table>

Acknowledgements

Many thanks to Guan Chenxian (@GCXWLP) for reporting this issue.

For more information

If there are any questions or comments about this advisory:

Czego dotyczy

Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.

PlatformaPaczkaPodatne wersjePoprawka w wersji
Python (PyPI) wagtail < 6.3.8, >= 6.4rc1, < 7.0.6, >= 7.1rc1, < 7.2.3, >= 7.3rc1, < 7.3.1 6.3.8, 7.0.6, 7.2.3, 7.3.1

Odnośniki

Ocena CVSS 6.1/10
Wektor CVSS
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
Słabość (CWE)
CWE-79
Platforma
Python (PyPI)
Paczka
wagtail
Ujawniono
03.03.2026
Aktualizacja
11.10.2026 14:17

Źródła i licencje

OSV / GitHub Advisory Database - PYSEC-2026-2307 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-p5cm-246w-84jm - CC BY 4.0

Historia podatności: wagtail

Wszystkie opisane podatności tej paczki (Python (PyPI)), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.

Wszystkie (30) w archiwum
Wszystkich wpisów
30
Pierwsza → ostatnia
04.2020 08.2026
Bez poprawki
0
Wykorzystywana w atakach
0

Rozkład istotności

  • Wysoka 5
  • Średnia 22
  • Niska 3

Ujawnienia w latach

  1. 2020: 3
  2. 2021: 2
  3. 2022: 1
  4. 2023: 3
  5. 2024: 3
  6. 2025: 0
  7. 2026: 18
Istotność:
  1. Wysoka · 7.3 CVE-2026-54263 >= 7.3, < 7.3.3, >= 7.4, < 7.4.2 7.3.3, 7.4.2
  2. Wagtail Vulnerable to Cross-site Scripting in TableBlock class attributes ten wpis
    Średnia · 6.1 CVE-2026-28222 < 6.3.8, >= 6.4rc1, < 7.0.6, >= 7.1rc1, < 7.2.3, >= 7.3rc1, < 7.3.1 6.3.8, 7.0.6, 7.2.3, 7.3.1
  3. Wysoka · 6.5 CVE-2024-39317 >= 6.0, < 6.0.6, >= 6.1, < 6.1.3, >= 2.0, < 5.2.6 6.0.6, 6.1.3, 5.2.6
  4. Wysoka · 6.4 CVE-2023-28836 >= 1.5, < 4.1.4, >= 4.2, < 4.2.2 4.1.4, 4.2.2
  5. Wysoka · 6.1 CVE-2021-29434 < 2.11.7, >= 2.12, < 2.12.4 2.11.7, 2.12.4
  6. Wysoka · 5.7 CVE-2020-15118 >= 2.8rc1, < 2.9.3, < 2.7.4 2.9.3, 2.7.4

Dowiedz się, które podatności dotyczą Twojej aplikacji

Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.

Podłącz swoją aplikację
Newsletter DockRay

Bezpieczeństwo aplikacji w Twojej skrzynce

Najważniejsze podatności, konkretne zalecenia i praktyczne wskazówki dla Twoich aplikacji. Wybierz technologie i śledź to, co ma znaczenie dla Twojego projektu.

  • Codzienne zestawienie nowych podatności, także krytycznych.
  • Powiadomienia o ważnych aktualizacjach.
  • Praktyczne porady o bezpieczeństwie i monitoringu aplikacji.

Pozostaw puste, aby otrzymywać informacje o wszystkich technologiach.

Zapis jest bezpłatny. Wypiszesz się jednym kliknięciem w wiadomości.