Strategic Overview
- Status
- Patched in 6.4.3
- Affected Plugin
- Advanced Custom Fields (ACF®)
- Affected Version
<= 6.4.2- CVSS
- 4.1Medium
- Weakness type
- CWE-20 · Improper Input Validation
- CVE
CVE-2025-54940
At a glance
CVE-2025-54940 is a medium-severity Improper Input Validation vulnerability in the Advanced Custom Fields (ACF®) WordPress plugin, affecting versions <= 6.4.2. It carries a CVSS score of 4.1 (reachable over the network; low attack complexity). The issue is fixed in version 6.4.3; sites on affected versions should update now. Disclosed August 2025, reported by Shogo Kumamaru.
Vulnerability Overview
The Advanced Custom Fields (ACF®) plugin for WordPress is vulnerable to HTML Injection in all versions up to, and including, 6.4.2. This is due to the plugin nor properly neutralizing unsafe HTML. This makes it possible for authenticated attackers, with administrator-level access and above, to inject potentially malicious HTML.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.
CWE-20: Improper Input Validation
Reaching this weakness in Advanced Custom Fields (ACF®) <= 6.4.2 takes a caller who can reach the endpoint. Improper input validation means the application accepts input without confirming it has the form, type or range the code downstream assumes.
The concrete impact depends on where the unvalidated value lands, which is why records in this class range from cosmetic bugs to full compromise. For Advanced Custom Fields (ACF®) the fix is 6.4.3: builds <= 6.4.2 are affected, anything from 6.4.3 onward is not.
Remediation
Update to version 6.4.3, or a newer patched version
How does WordSec protect against this?
The attempt arrives as an ordinary request to Advanced Custom Fields (ACF®): WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Advanced Custom Fields (ACF®) 6.4.3 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
Other vulnerabilities in Advanced Custom Fields (ACF®)
- 8.8CVE-2023-1196: Advanced Custom Fields <= 6.0.7 PHP Object Injection
CVE-2023-1196 - 7.5CVE-2021-20865: Advanced Custom Fields <= 5.10 Information Disclosure
CVE-2021-20865 - 6.5CVE-2022-23183: Advanced Custom Fields <= 5.12 Information Disclosure
CVE-2022-23183 - 6.5CVE-2021-20866: Advanced Custom Fields <= 5.10 Information Disclosure
CVE-2021-20866 - 6.4CVE-2023-6701: Advanced Custom Fields <= 6.2.4 Stored XSS
CVE-2023-6701 - 6.1CVE-2023-30777: Advanced Custom Fields 5.8.10… Reflected XSS
CVE-2023-30777 - 6.1CVE-2020-36172: Advanced Custom Fields <= 5.8.11 Cross-Site Scripting
CVE-2020-36172 - 5.5CVE-2024-45429: Advanced Custom Fields <= 6.3.5 Stored XSS
CVE-2024-45429
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C