CVE-2026-3362
Received Received - Intake
Stored XSS in WordPress Short Comment Filter Plugin Settings

Publication date: 2026-04-22

Last updated on: 2026-04-22

Assigner: Wordfence

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-22
Last Modified
2026-04-22
Generated
2026-05-07
AI Q&A
2026-04-22
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
short_comment_filter short_comment_filter to 2.2 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability affects the Short Comment Filter plugin for WordPress versions up to and including 2.2, specifically via the 'Minimum Count' settings field. Detection involves checking if the vulnerable plugin version is installed and if the 'Minimum Count' option contains malicious script injections.

To detect this vulnerability on your system, you can:

  • Verify the installed version of the Short Comment Filter plugin to see if it is version 2.2 or earlier.
  • Inspect the WordPress database options table for suspicious or script-injected values in the 'Minimum Count' setting.
  • Check the settings page of the Short Comment Filter plugin for unexpected or malicious scripts executing when accessed by an administrator.

Example commands to assist detection:

  • To check the plugin version via WP-CLI: wp plugin list --status=active | grep short-comment-filter
  • To query the 'Minimum Count' option from the WordPress database (assuming default table prefix wp_): mysql -u [user] -p -e "SELECT option_value FROM wp_options WHERE option_name = 'short_comment_filter_minimum_count';"
  • To search for suspicious script tags in the option value: Use grep or similar tools on database dumps or export the option value and inspect for <script> tags or other injected code.

Can you explain this vulnerability to me?

The Short Comment Filter plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in the 'Minimum Count' settings field in all versions up to and including 2.2.

This vulnerability exists because the plugin does not properly sanitize input (no sanitize callback on register_setting) and does not escape output (no esc_attr() on the echoed value in the input's value attribute).

As a result, an authenticated attacker with administrator-level access or higher can inject arbitrary web scripts into the settings page. These scripts execute whenever a user accesses that page.

This issue is especially significant in WordPress multisite installations or when the DISALLOW_UNFILTERED_HTML setting is enabled, as administrators in these contexts do not have the unfiltered_html capability.


How can this vulnerability impact me? :

This vulnerability allows an attacker with administrator-level access to inject malicious scripts into the WordPress settings page.

These scripts can execute in the context of users who visit the settings page, potentially leading to unauthorized actions, data theft, or further compromise of the site.

The impact is heightened in multisite WordPress installations or when DISALLOW_UNFILTERED_HTML is set, as administrators cannot use unfiltered HTML, making this vulnerability a primary vector for script injection.

According to the CVSS v3.1 score, the vulnerability has a base score of 4.4, indicating a medium severity with low confidentiality and integrity impact but no availability impact.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, update the Short Comment Filter plugin to a version later than 2.2 where the issue is fixed.

Ensure that only trusted administrators have access to the WordPress settings page, as the vulnerability requires administrator-level access.

Consider disabling or restricting the use of the 'Minimum Count' settings field until the plugin is updated.

In WordPress multisite installations or when DISALLOW_UNFILTERED_HTML is set, review administrator capabilities to limit exposure.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart