What the vulnerability does
01Description
The Smart Custom Fields plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 5.0.7. This is due to insufficient input sanitization and output escaping of uploaded image attachment titles. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. NOTE: This vulnerability was partially patched in 5.0.7.
Explanation of Vulnerability in Simple Terms
02Summary
Smart Custom Fields versions 5.0.7 and earlier contain a cross-site scripting (XSS) vulnerability that allows authenticated users to inject malicious scripts. The vulnerability affects the scope beyond the vulnerable component, potentially impacting other users and site functionality. An attacker with low-level site access can craft malicious input that executes in other users' browsers when they view affected content.
What an attacker can do
03Attacker Capabilities
Inject and execute malicious JavaScript in other users' browsers to steal data or perform actions on their behalf.
Potential impact on your site
04Site Impact
Site users' sessions and data are at risk if an authenticated attacker injects malicious scripts into custom fields.
Conditions required to exploit
05Prerequisites
Attacker must have a low-privilege account on the site (e.g., contributor or subscriber role).
Key dates
06Disclosure timeline
July 17, 2026
CVE published