Description
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.
Published: 2026-07-17
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Smart Custom Fields plugin for WordPress stores the title of uploaded images without proper sanitization or escaping. This allows an authenticated attacker with Author or higher privileges to inject malicious JavaScript into the title field, which is then rendered on any page that displays the attachment, enabling client‑side code execution and potential cookie theft, session hijacking, or defacement.

Affected Systems

WordPress installations that have the inc2734 Smart Custom Fields plugin at version 5.0.7 or earlier are affected. The vulnerability applies to all revisions up to and including 5.0.7, regardless of other plugins or themes installed.

Risk and Exploitability

The CVSS score of 6.4 labels this issue as moderate in overall severity. The EPSS score of less than 1% indicates that exploitation in the wild is currently unlikely. The vulnerability is not listed in CISA KEV. An attacker must first acquire Author‑level or higher credentials to upload an image with a malicious title; there is no known public exploit beyond the demonstrated functionality, so the risk remains limited under these constraints.

Generated by OpenCVE AI on July 31, 2026 at 00:44 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Smart Custom Fields plugin to a version newer than 5.0.7, where attachment titles are properly sanitized and escaped, directly addressing CWE‑79 Cross‑Site Scripting.
  • If an immediate update cannot be performed, restrict the ability to edit or create attachment titles to administrators only and enforce server‑side validation that strips or encodes any script tags, mitigating the CWE‑79 risk.
  • Deploy a web application firewall rule or implement a Content Security Policy that blocks or sanitizes inline scripts submitted through attachment titles, further reducing the potential for CWE‑79 exploitation.

Generated by OpenCVE AI on July 31, 2026 at 00:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 17 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 02:45:00 +0000

Type Values Removed Values Added
First Time appeared Inc2734
Inc2734 smart Custom Fields
Wordpress
Wordpress wordpress
Vendors & Products Inc2734
Inc2734 smart Custom Fields
Wordpress
Wordpress wordpress

Fri, 17 Jul 2026 01:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Smart Custom Fields <= 5.0.7 - Authenticated (Author+) Stored Cross-Site Scripting via Attachment Title
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Inc2734 Smart Custom Fields
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-17T15:07:53.149Z

Reserved: 2026-02-16T17:19:23.910Z

Link: CVE-2026-2594

cve-icon Vulnrichment

Updated: 2026-07-17T15:07:47.818Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T00:45:05Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')