Incorrect Regular Expression in WordPress - #VU168246

 

Incorrect Regular Expression in WordPress - #VU168246

Published: November 19, 2026


Vulnerability identifier: #VU168246
CSH Severity: Low
CVSS v4: 0 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-185
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

WordPress

Remediation

Install security update from vendor's website.

WordPress - addressed in versions 5.6.24, 5.7.22, 5.8.20, 5.9.21, 6.0.19, 6.1.17, 6.2.16, 6.3.15, 6.4.15, 6.5.15, 6.6.12, 6.7.12, 6.8.13, 6.9.12, 7.0.9, 7.1.5

External References

Related Security Bulletins