CVE-2026-2594

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

Published Jul 17, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Jul 17, 2026, 3:07 PM
Reserved
Feb 16, 2026, 5:19 PM
Status
Deferred
Published
Jul 17, 2026, 2:18 AM
Modified
Jul 17, 2026, 4:17 PM