cve.bz

CVE-2021-29434 torchbox wagtail: Cross-site Scripting

4.8 mediumEPSS 0.6%Fix available

Medium (4.8) in torchbox wagtail. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in wagtail 2.11.6, 2.11.7, 2.12.4.

On this page
Wagtail is a Django content management system. In affected versions of Wagtail, when saving the contents of a rich text field in the admin interface, Wagtail does not apply server-side checks to ensure that link URLs use a valid protocol. A malicious user with access to the admin interface could thus craft a POST request to publish content with `javascript:` URLs containing arbitrary code. The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin. See referenced GitHub advisory for additional details, including a workaround. Patched versions have been released as Wagtail 2.11.7 (for the LTS 2.11 branch) and Wagtail 2.12.4 (for the current 2.12 branch).

Severity

CVSS 3.1

4.8 medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • wagtail (PyPI): fixed in 2.11.7, 2.12.4, 2.11.6

Ask an AI about this CVE

Show the promptExplain CVE-2021-29434 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29434?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29434?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-29434 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
torchbox:wagtailbefore 2.11.6
torchbox:wagtailfrom 2.11.0 before 2.11.7
torchbox:wagtailfrom 2.12.0 before 2.12.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wq5h-f9p5-q7fxPyPIwagtail<2.11.72.11.7
GHSA-wq5h-f9p5-q7fxPyPIwagtail>=2.12 <2.12.42.12.4
PYSEC-2021-114PyPIwagtail>=2.11 <2.11.7
<2.11.6
>=2.12 <2.12.4
2.11.7, 2.11.6, 2.12.4

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON