mediumCVE-2026-2594

Smart Custom Fields <= 5.0.7 - Authenticated (Author+) Stored Cross-Site Scripting via Attachment Title

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.

Browse WordPress security risks
ProductSmart Custom Fields
CVSS6.4
EPSS0.0024
UpdatedJuly 19, 2026

Quick answer

Smart Custom Fields should be reviewed and updated if it matches the affected versions. The recommended fix is to apply the vendor-supported patched version or the mitigation steps below, then retest the public website with Fixnx.

Who is affected

Affected versions

  • up to and including 5.0.7

Fixed versions

  • 5.0.8

How to fix it

Smart Custom Fields is affected by CVE-2026-2594, a stored cross-site scripting flaw in attachment titles. An author can store active content in an image title that runs when a vulnerable view is opened. Update Smart Custom Fields to 5.0.8 or a newer vendor-supported patched release. Prioritize exposed production systems and accounts that can reach the affected feature.

  1. Inventory every Smart Custom Fields deployment, version, exposed endpoint, environment, and owner.
  2. Confirm the installed release is not an affected version up to and including 5.0.7.
  3. Update Smart Custom Fields to 5.0.8 or a newer vendor-supported patched release.
  4. Until the update is complete, disable author uploads and affected custom fields or sanitize attachment titles.
  5. Review relevant logs and search attachment titles, metadata, and revisions for scripts, event handlers, and encoded active content.
  6. Remove injected metadata, clear caches, revoke exposed administrator sessions, and inspect privilege or setting changes after affected content was viewed.
  7. Clear WordPress, object, page, CDN, and browser caches, then update the asset inventory and close any temporary controls only after validation.

Scan now. Google sign-in is only needed to unlock fix guidance.

Verify the fix

  • Confirm Smart Custom Fields is on the patched version or mitigation stated above and record the exact deployed version.
  • Confirm attachment titles are safely escaped in every Smart Custom Fields view; version 5.0.7 alone is not enough because it was only a partial patch.
  • Confirm the affected WordPress REST, AJAX, form, shortcode, upload, export, or admin feature is available only to the roles and requests that need it.
  • Review logs after remediation for continued exploit attempts or signs that the issue was used before the fix.
  • Rerun the relevant dependency, platform, vendor, or Fixnx security check and document the result, affected assets, change record, and cleanup evidence for CVE-2026-2594.

Related categories

Related security risks

More published guidance from the same primary category.

Trusted references

FAQ

What is affected by CVE-2026-2594?

Smart Custom Fields versions listed as affected should be reviewed: up to and including 5.0.7.

What should I fix first?

Start with internet-facing sites, admin panels, login flows, plugins, themes, modules, packages, and systems that process user-controlled input or sensitive data.

How do I confirm the fix worked?

Apply the patched version or mitigation, clear caches where relevant, retest the affected workflow, and run a new Fixnx scan to verify public website exposure signals.

How are Fixnx security risk categories chosen?

Fixnx keeps one canonical risk page and assigns only broad, relevant categories such as ecosystem, technology area, or vulnerability class.