WordPress Core < 6.2.2 - Shortcode Execution in User Generated Content

Acceptance of Extraneous Untrusted Data With Trusted Data
CVSS 6.5 (Medium)
Publicly Published May 19, 2023
Last Updated June 22, 2023
Researcher Liam Gladdy


WordPress Core processes shortcodes in user-generated content on block themes in versions up to, and including, 6.2.1. This could allow unauthenticated attackers to execute shortcodes via submitting comments or other content, allowing them to exploit vulnerabilities that typically require Subscriber or Contributor-level permissions. While this is likely to have minimal impact on its own, it can significantly increase the severity of other vulnerabilities.



1 affected software package

Software Type Core
Patched? Yes
Remediation Update to one of the following versions, or a newer patched version: 5.9.7, 6.0.5, 6.1.3, 6.2.2
Affected Versions
  • 5.9 - 5.9.7
  • 6.0 - 6.0.5
  • 6.1 - 6.1.3
  • 6.2 - 6.2.2
Patched Versions
  • 5.9.7
  • 6.0.5
  • 6.1.3
  • 6.2.2

All the threat data shared in this database is powered by Wordfence Intelligence Enterprise.
Interested in integrating this data into your platform or network?
Contact us now to discuss API access to our Wordfence Intelligence Enterprise Data Feeds.

Inquire Now

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.