Security mailing lists by PureSourceCode

CVE-2021-29434

MEDIUM 4.8CVSS 3.1

Improper validation of URLs ('Cross-site Scripting') in Wagtail rich text fields

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).

Published
19 Apr 2021
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-wq5h-f9p5-q7fxPYSEC-2021-114
Sources
NVDJSONOSV GHSA-wq5h-f9p5-q7fxJSONOSV PYSEC-2021-114JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 4.8 CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 3.5 AV:N/AC:M/Au:S/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD torchbox wagtail
cpe:2.3:a:torchbox:wagtail:*:*:*:*:-:*:*:*
< 2.11.6 2.11.6
NVD torchbox wagtail
cpe:2.3:a:torchbox:wagtail:*:*:*:*:lts:*:*:*
>= 2.11.0, < 2.11.7 2.11.7
NVD torchbox wagtail
cpe:2.3:a:torchbox:wagtail:*:*:*:*:*:*:*:*
>= 2.12.0, < 2.12.4 2.12.4
OSV PyPI wagtail < 2.11.7 2.11.7
OSV PyPI wagtail >= 2.12, < 2.12.4 2.12.4
OSV PyPI wagtail >= 2.11, < 2.11.7; < 2.11.6; >= 2.12, < 2.12.4 2.11.7, 2.11.6, 2.12.4

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 19 Apr 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Apr 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Apr 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.