Skip to main content
Vulnerability Database/CVE-2026-95817

CVE-2026-95817: DoFollow Case by Case Plugin XSS Vulnerability

CVE-2026-95817 is a stored XSS vulnerability in the DoFollow Case by Case WordPress plugin allowing unauthenticated attackers to inject malicious scripts via comments. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-95817 Overview

CVE-2026-95817 is a Stored Cross-Site Scripting (XSS) vulnerability in the DoFollow Case by Case plugin for WordPress. The flaw affects all versions up to and including 3.6.0 and stems from insufficient input sanitization and output escaping of comment content. Unauthenticated attackers can submit comments containing arbitrary web scripts. Comment moderation delays exploitation but does not prevent it. Once an administrator approves the comment, the stored payload executes in the browser of every visitor to the affected post. The vulnerability is tracked under [CWE-79].

Critical Impact

Unauthenticated attackers can store malicious JavaScript in approved comments, enabling session hijacking, credential theft, and administrative account takeover against any visitor to the affected WordPress post.

Affected Products

  • DoFollow Case by Case plugin for WordPress — all versions up to and including 3.6.0
  • WordPress sites running the vulnerable plugin with comments enabled
  • Any site visitor, including authenticated administrators, who views a post containing a maliciously crafted approved comment

Discovery Timeline

  • 2026-10-02 - CVE-2026-95817 published to the National Vulnerability Database (NVD)
  • 2026-10-02 - Last updated in NVD database

Technical Details for CVE-2026-95817

Vulnerability Analysis

The DoFollow Case by Case plugin modifies the rel attribute of hyperlinks in WordPress comments on a case-by-case basis. During this processing, the plugin reads comment content and rewrites comment output without applying adequate sanitization or escaping. Attacker-controlled characters such as <, >, and quote marks survive processing and reach the rendered HTML intact.

Because the injection point is the public comment form, no authentication is required to submit the payload. The payload is persisted in the WordPress database and served to every subsequent visitor of the affected post after moderation. The attacker-supplied script runs under the origin of the WordPress site, inheriting access to cookies, session state, and the Document Object Model (DOM).

The affected code paths are visible in the plugin source at lines 733, 748, and 797 of dofollow-case-by-case.php in the 3.6.0 tag. See the WordPress Plugin Code Snippet for the vulnerable logic.

Root Cause

The root cause is a failure to sanitize untrusted input on write and to escape output on render. The plugin trusts the stored comment body during its link-attribute rewriting routine. It emits comment-derived strings into HTML context without esc_html(), wp_kses(), or equivalent WordPress output-escaping APIs.

Attack Vector

An unauthenticated attacker submits a comment to any post that accepts comments. The comment body contains HTML or script constructs designed to survive the plugin's processing. The comment enters the moderation queue. When an administrator approves the comment, the stored payload is served inline to every visitor of that post. Execution occurs in the visitor's browser under the site's origin.

For technical details on the vulnerable code paths, refer to the Wordfence Vulnerability Report and the referenced WordPress plugin source lines.

Detection Methods for CVE-2026-95817

Indicators of Compromise

  • Approved WordPress comments containing <script> tags, inline event handlers such as onerror=, onload=, or onclick=, or javascript: URIs
  • Unexpected outbound requests from site visitors' browsers to attacker-controlled domains originating from affected post pages
  • New or modified administrator accounts created shortly after an administrator reviewed the comment moderation queue
  • Comments submitted from the same IP or user agent targeting multiple posts in rapid succession

Detection Strategies

  • Query the wp_comments table for comment_content values matching patterns such as <script, onerror=, onload=, or javascript: and review results against expected comment formats
  • Monitor web server access logs for POST requests to wp-comments-post.php containing encoded script payloads
  • Inspect rendered post HTML for script tags or event handlers originating within the comments container
  • Deploy a Content Security Policy (CSP) in report-only mode to surface inline-script violations that correlate with comment rendering

Monitoring Recommendations

  • Enable WordPress audit logging for comment submission, approval, and administrator session activity
  • Alert on administrator account creation, role changes, and plugin or theme modifications that follow comment approvals
  • Centralize WordPress and web server logs for correlation and retention; the Singularity Data Lake can ingest and normalize these logs via OCSF for cross-source hunting
  • Review the WordPress plugin inventory on a scheduled cadence and flag dofollow-case-by-case versions at or below 3.6.0

How to Mitigate CVE-2026-95817

Immediate Actions Required

  • Identify all WordPress installations with the DoFollow Case by Case plugin installed and record the version in use
  • Update the plugin to a version later than 3.6.0 or deactivate and remove it until a fixed release is confirmed
  • Audit the comments database for suspicious entries submitted while a vulnerable version was active and unapprove or delete any containing script constructs
  • Rotate administrator passwords and invalidate active sessions if evidence of exploitation is found

Patch Information

A code change addressing the vulnerable paths is referenced in the plugin's source repository. Review the WordPress Changeset Overview for the committed fix and apply the resulting plugin update through the WordPress admin dashboard or via wp-cli using wp plugin update dofollow-case-by-case.

Workarounds

  • Deactivate the DoFollow Case by Case plugin until a patched version is installed
  • Disable comments site-wide or on high-traffic posts to prevent new payload submission
  • Require manual moderation for all comments and visually inspect raw comment source, not just the rendered preview, before approval
  • Deploy a web application firewall (WAF) rule to block comment submissions containing script tags, event-handler attributes, or javascript: URIs
bash
# Update the plugin via wp-cli
wp plugin update dofollow-case-by-case

# Or deactivate until a fixed version is available
wp plugin deactivate dofollow-case-by-case

# Identify suspicious stored comments
wp db query "SELECT comment_ID, comment_post_ID, comment_author, comment_date \
  FROM wp_comments \
  WHERE comment_content REGEXP '<script|onerror=|onload=|javascript:';"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.