Description
The Short Comment Filter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Minimum Count' settings field in all versions up to and including 2.2. This is due to insufficient input sanitization (no sanitize callback on register_setting) and missing output escaping (no esc_attr() on the echoed value in the input's value attribute). The option value is stored via update_option() and rendered unescaped in an HTML attribute context. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in the settings page that will execute whenever a user accesses that page. This is particularly impactful in WordPress multisite installations or when DISALLOW_UNFILTERED_HTML is set, where administrators are not granted the unfiltered_html capability.
Published: 2026-04-22
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting with administrator privileges
Action: Apply patch
AI Analysis

Impact

The Short Comment Filter plugin for WordPress, versions up to 2.2, suffers from a stored cross‑site scripting vulnerability (CWE‑79) in the 'Minimum Count' settings field. The plugin registers the option without a sanitize callback, and the value is echoed inside an HTML attribute without escaping. An authenticated administrator can enter arbitrary JavaScript, which will be executed whenever the settings page is loaded by any user, potentially compromising the entire blog.

Affected Systems

This flaw affects all WordPress installations running itsananderson's Short Comment Filter plugin with a version 2.2 or earlier. The issue is especially relevant for multisite networks or where the DISALLOW_UNFILTERED_HTML constant is set, because administrators normally lack the unfiltered_html capability yet still can inject code via the settings page.

Risk and Exploitability

The CVSS score of 4.4 denotes moderate risk. Exploitation requires valid administrator credentials, but the injected payload is stored indefinitely and will run for every visitor of the settings page, including other admins. With no EPSS data and absence from the CISA KEV catalog, widespread exploitation is currently unreported, but the persistence of the payload makes it a significant concern in shared admin environments.

Generated by OpenCVE AI on April 22, 2026 at 09:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Short Comment Filter plugin to a release newer than 2.2 that implements proper input sanitization and output escaping for the 'Minimum Count' setting.
  • If an upgrade is not available, disable or delete the Short Comment Filter plugin entirely to eliminate the risk.
  • Manually sanitize any remaining 'Minimum Count' values by editing the option in the database to ensure only numeric characters are stored, or use a code snippet that forcibly casts the value to an integer before rendering.
  • Restrict the administrator role to trusted users and review user capabilities on multisite networks.

Generated by OpenCVE AI on April 22, 2026 at 09:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 22 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 22 Apr 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Itsananderson
Itsananderson short Comment Filter
Wordpress
Wordpress wordpress
Vendors & Products Itsananderson
Itsananderson short Comment Filter
Wordpress
Wordpress wordpress

Wed, 22 Apr 2026 08:30:00 +0000

Type Values Removed Values Added
Description The Short Comment Filter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Minimum Count' settings field in all versions up to and including 2.2. This is due to insufficient input sanitization (no sanitize callback on register_setting) and missing output escaping (no esc_attr() on the echoed value in the input's value attribute). The option value is stored via update_option() and rendered unescaped in an HTML attribute context. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in the settings page that will execute whenever a user accesses that page. This is particularly impactful in WordPress multisite installations or when DISALLOW_UNFILTERED_HTML is set, where administrators are not granted the unfiltered_html capability.
Title Short Comment Filter <= 2.2 - Authenticated (Administrator+) Stored Cross-Site Scripting via 'Minimum Count' Setting
Weaknesses CWE-79
References
Metrics cvssV3_1

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


Subscriptions

Itsananderson Short Comment Filter
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-22T13:48:36.565Z

Reserved: 2026-02-27T19:52:23.019Z

Link: CVE-2026-3362

cve-icon Vulnrichment

Updated: 2026-04-22T13:48:27.651Z

cve-icon NVD

Status : Deferred

Published: 2026-04-22T09:16:21.757

Modified: 2026-04-22T20:22:50.570

Link: CVE-2026-3362

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T11:44:12Z

Weaknesses