WordPress Core < 6.2.1 - 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 - WPEngine


WordPress Core processes shortcodes in user-generated content on block themes in versions up to, and including, 6.2. 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.6, 6.0.4, 6.1.2, 6.2.1
Affected Versions
  • 5.9 - 5.9.6
  • 6.0 - 6.0.4
  • 6.1 - 6.1.2
  • 6.2 - 6.2.1
Patched Versions
  • 5.9.6
  • 6.0.4
  • 6.1.2
  • 6.2.1

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

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.