Incorrect Regular Expression in WordPress - #VU168246
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause WordPress to misclassify malformed media types as JSON, potentially reducing the effectiveness of upstream firewall filters.
The vulnerability exists due to an unescaped hyphen in the regular expression used by wp_is_json_media_type() when checking request media types. A remote attacker can submit a request with a malformed media type to cause WordPress to classify it as JSON.