Description
The Related Posts by Taxonomy plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'related_posts_by_tax' shortcode in all versions up to, and including, 2.7.6 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Published: 2026-01-16
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Immediate Patch
AI Analysis

Impact

An attacker with contributor or higher access can exploit a stored cross‑site scripting flaw in the Related Posts by Taxonomy WordPress plugin. The vulnerability arises from insufficient input sanitization and output escaping of the 'related_posts_by_tax' shortcode attributes; arbitrary scripts can be stored in a post’s metadata. When a user views a page containing the malicious shortcode, the injected code runs in the context of that site, potentially hijacking sessions, defacing content, or executing further attacks.

Affected Systems

The flaw affects the keesiemeijer: Related Posts by Taxonomy plugin installed on WordPress sites. All released versions up to and including 2.7.6 are vulnerable. Version 2.7.7 or later removes the vulnerability by properly sanitizing shortcode attributes.

Risk and Exploitability

The CVSS score of 6.4 indicates moderate severity, but the EPSS score of less than 1 % suggests low likelihood of exploitation in the wild. The vulnerability is not currently listed in the CISA KEV catalog. Exploitation requires an authenticated contributor‑level account with the ability to edit or create posts that use the shortcode; no remote code execution or local privilege escalation is possible. If the vulnerable plugin is left in place, any authenticated user with the required role can inject malicious scripts that will affect all visitors to the page.

Generated by OpenCVE AI on April 15, 2026 at 21:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Related Posts by Taxonomy plugin to version 2.7.7 or later, which removes the stored XSS flaw by sanitizing shortcode attributes.
  • If an immediate upgrade is not feasible, restrict the contributor role from editing or creating posts that contain the 'related_posts_by_tax' shortcode, or remove the shortcode from existing content.
  • Scan all posts that use the shortcode for any embedded script tags and replace or delete suspicious attributes before the plugin is removed or no longer used.
  • As an additional precaution, disable the plugin if it is not required for site functionality, or use a site‑wide content filter to block execution of the shortcode until a patch is applied.

Generated by OpenCVE AI on April 15, 2026 at 21:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 08 Apr 2026 17:00:00 +0000


Fri, 16 Jan 2026 14:15:00 +0000

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Vendors & Products Wordpress
Wordpress wordpress
Metrics ssvc

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


Fri, 16 Jan 2026 07:00:00 +0000

Type Values Removed Values Added
Description The Related Posts by Taxonomy plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'related_posts_by_tax' shortcode in all versions up to, and including, 2.7.6 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Title Related Posts by Taxonomy <= 2.7.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'related_posts_by_tax' Shortcode
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

Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T16:33:23.501Z

Reserved: 2026-01-13T19:07:53.495Z

Link: CVE-2026-0916

cve-icon Vulnrichment

Updated: 2026-01-16T13:59:36.022Z

cve-icon NVD

Status : Deferred

Published: 2026-01-16T07:15:56.667

Modified: 2026-04-15T00:35:42.020

Link: CVE-2026-0916

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-15T22:00:06Z

Weaknesses