All reports
Medium

WordPress Core < 6.5.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via Template Part Block

Affected versions

WordPresswordpress
Affected versions
>=5.9 <=5.9.9 || >=6.0 <=6.0.8 || >=6.1 <=6.1.6 || >=6.2 <=6.2.5 || >=6.3 <=6.3.4 || >=6.4 <=6.4.4 || >=6.5 <=6.5.4
Fixed version
5.9.10 · 6.0.9 · 6.1.7 · 6.2.6 · 6.3.5 · 6.4.5 · 6.5.5
WordPressgutenberg
Affected versions
<=18.6.0
Fixed version
18.6.1

Exploitation

CVE-2024-31111

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-22

Description

WordPress Core is vulnerable to Stored Cross-Site Scripting via the Template Part Block in various versions up to 6.5.5 due to insufficient input sanitization and output escaping on the 'tagName' attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. CVE-2024-37492 is a duplicate CVE assignment.

Links

Credits

  • Rafie Muhammad

Data rights and licenses

Wordfence

Copyright 2012-2026 Defiant Inc.

Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.

License terms

Copyright 1999-2026 The MITRE Corporation

CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.

License terms