CVE-2024-31211: 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 W

medium Affects WordPress core. Feed 2026.10.29.4, updated 2026-10-29; published ; advisory modified .

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 W

Package
WordPress core WordPress
Affected versions
>=6.4.0 and <6.4.2
Fixed in
6.4.2
Severity
medium  CVSS 5.5
Exploitation
not on CISA KEV · EPSS 3% (86.1th percentile)
Published
2024-04-04
Source
nvd

References

CWE-502
NVD recordWordPress core advisories

Am I affected?

Find out in one command. phpwarden checks your WordPress install against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden wordpress /var/www/html

# or, without Composer
pipx install phpwarden   &&   phpwarden wordpress /var/www/html

Or keep it checked automatically with the GitHub Action or a nightly cron; see WordPress docs.

Install docs   How findings are ranked

Related advisories