CVE-2024-31211: WordPress

Critical severity, CVSS 9.8. EPSS: 2.8% chance of exploitation in the next 30 days.

WordPress is an open publishing platform for the Web. Unserialization of instances of the `WP_HTML_Token` class allows for code execution via its `__destruct()` magic method. This issue was fixed in WordPress 6.4.2 on December 6th, 2023. Versions prior to 6.4.0 are not affected.

Affected products

  • WordPress WordPress: from 6.4.0, before 6.4.2 (fixed in 6.4.2)

Published 2024-04-04. Last modified 2026-06-17.