CVE-2026-22210

wpDiscuz before 7.6.47 - Cross-Site Scripting via Unescaped Attachment URLs

Published Mar 13, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
Description
wpDiscuz before 7.6.47 contains a cross-site scripting vulnerability that allows attackers to inject malicious code through unescaped attachment URLs in HTML output by exploiting the WpdiscuzHelperUpload class. Attackers can craft malicious attachment records or filter hooks to inject arbitrary JavaScript into img and anchor tag attributes, executing code in the context of WordPress users viewing comments.

Analysis

AI-generated

Technical impact

wpDiscuz before 7.6.47 has a cross‑site scripting (XSS) vulnerability that allows attackers to inject arbitrary JavaScript by exploiting unescaped attachment URLs in the HTML output. The flaw resides in the WpdiscuzHelperUpload class and permits malicious code to be inserted into img and anchor tag attributes, which executes in the browser context of any WordPress user who views a comment containing the crafted attachment. This is a standard input validation weakness identified as CWE-79 and can lead to session hijacking, defacement, or the execution of further client‑side attacks.

Affected Systems

All WordPress sites that use the gVectors wpDiscuz plugin with a version earlier than 7.6.47 are affected. The vulnerability applies to any instance where the plugin’s attachment URLs are rendered in comment HTML, as indicated by the CPE string cpe:2.3:a:gvectors:wpdiscuz:*:*:*:*:*:wordpress:*:*.

Risk and Exploitability

The CVSS score for this issue is 2.1, indicating low severity, and the EPSS score is less than 1%. The vulnerability is not listed in the CISA KEV catalog. Attackers would need the ability to create or modify attachment records within wpDiscuz, such as an administrator or a user with upload rights, to craft the malicious URLs. Because the exploit works purely client‑side, success depends on the victim visiting the affected comment. While the overall likelihood of exploitation is low, any XSS flaw presents a potential vector for user‑targeted attacks and should be remediated promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update wpDiscuz to version 7.6.47 or later to remove the vulnerability.
  • If an update cannot be applied immediately, disable or delete the wpDiscuz plugin until a patch is available.
  • Review existing attachments and delete any that appear suspicious or originate from untrusted sources.
  • Ensure WordPress core and all plugins are kept up to date, and consider implementing a WAF or security plugin that filters out XSS payloads.

Generated by OpenCVE AI on March 17, 2026 at 13:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Vendors & Products Wordpress
Wordpress wordpress
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description wpDiscuz before 7.6.47 contains a cross-site scripting vulnerability that allows attackers to inject malicious code through unescaped attachment URLs in HTML output by exploiting the WpdiscuzHelperUpload class. Attackers can craft malicious attachment records or filter hooks to inject arbitrary JavaScript into img and anchor tag attributes, executing code in the context of WordPress users viewing comments.
Title wpDiscuz before 7.6.47 - Cross-Site Scripting via Unescaped Attachment URLs
First Time appeared Gvectors
Gvectors wpdiscuz
Weaknesses CWE-79
CPEs cpe:2.3:a:gvectors:wpdiscuz:*:*:*:*:*:wordpress:*:*
Vendors & Products Gvectors
Gvectors wpdiscuz
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Mar 13, 2026, 2:14 PM
Reserved
Jan 6, 2026, 4:47 PM
Status
Analyzed
Published
Mar 13, 2026, 7:54 PM
Modified
Jun 17, 2026, 10:19 AM