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

CVE-2026-104454: YesWiki DOS Vulnerability via Regex Flaw

CVE-2026-104454 is a denial of service vulnerability in YesWiki before 4.6.7 caused by algorithmic complexity in markdown-link regex processing. Attackers can exhaust server resources with crafted input. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

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-104454 Overview

CVE-2026-104454 is a regular-expression denial of service (ReDoS) vulnerability in YesWiki versions before 4.6.7. The flaw lives in the wakka.php formatter, which applies an O(n²) markdown-link regular expression to user-supplied input. Unauthenticated attackers can submit a small crafted body containing bracket characters to the page-edit preview endpoint. The regex engine then enters catastrophic backtracking, pinning PHP-FastCGI Process Manager (PHP-FPM) workers and saturating the worker pool. The vulnerability is tracked under [CWE-1333: Inefficient Regular Expression Complexity].

Critical Impact

A single unauthenticated HTTP request can exhaust PHP-FPM workers and render the YesWiki instance unavailable to legitimate users.

Affected Products

  • YesWiki versions prior to 4.6.7
  • Deployments exposing the page-edit preview endpoint to anonymous users
  • PHP-FPM-backed YesWiki installations

Discovery Timeline

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

Technical Details for CVE-2026-104454

Vulnerability Analysis

The vulnerability stems from an inefficient regular expression used by YesWiki's wakka.php formatter to recognize markdown-style links. The expression carries quadratic time complexity relative to input length when processing nested or unbalanced bracket sequences. Attackers exploit this by submitting a short payload of repeated [ characters to the page-edit preview handler. The formatter invokes the vulnerable regex against the body, forcing the PCRE engine into catastrophic backtracking. Each affected request keeps a PHP-FPM worker busy at full CPU for an extended duration. Because the preview endpoint is reachable without authentication, an attacker can issue a handful of concurrent requests and consume every available worker in the pool. Once the pool is saturated, subsequent legitimate requests queue or fail outright.

Root Cause

The root cause is an unbounded, non-linear regex pattern applied to attacker-controlled input without length limits, timeout protection, or anchoring. The pattern exhibits ambiguous matching behavior that the PCRE backtracking engine resolves in O(n²) time, converting a small input into disproportionate CPU work.

Attack Vector

Exploitation requires only network reachability to the YesWiki page-edit preview endpoint. No authentication, user interaction, or elevated privileges are needed. An attacker crafts an HTTP POST request containing a short body of bracket characters, submits it to the preview handler, and repeats the request in parallel to monopolize PHP-FPM workers. Full technical analysis is published in the GitHub Security Advisory and the VulnCheck Advisory on YesWiki.

Detection Methods for CVE-2026-104454

Indicators of Compromise

  • Repeated POST requests to the YesWiki page-edit preview endpoint from a single source or small set of sources
  • Request bodies containing long runs of [ characters or unbalanced bracket sequences
  • Sustained PHP-FPM worker CPU usage approaching 100% on individual workers
  • Growing PHP-FPM request queue depth and 502 or 504 gateway errors from the fronting web server

Detection Strategies

  • Alert on anonymous POST requests to preview endpoints whose body size is small but whose processing time exceeds normal thresholds
  • Correlate web access logs with PHP-FPM slowlog entries to surface requests that trigger long regex evaluations
  • Deploy a Web Application Firewall (WAF) rule that flags request bodies containing high-density bracket characters submitted to YesWiki edit paths

Monitoring Recommendations

  • Enable the PHP-FPM slowlog with a low request_slowlog_timeout to capture long-running requests and their stack traces
  • Monitor PHP-FPM pool metrics for active processes, listen queue, and max children reached counters
  • Track per-source request rates to YesWiki edit and preview URIs and alert on sudden spikes from unauthenticated clients

How to Mitigate CVE-2026-104454

Immediate Actions Required

  • Upgrade YesWiki to version 4.6.7 or later as the authoritative fix
  • Restrict access to the page-edit preview endpoint to authenticated users where feasible
  • Place a WAF or reverse proxy rule in front of YesWiki to block request bodies containing excessive bracket characters
  • Lower PHP-FPM request_terminate_timeout so stuck workers are reclaimed quickly during an attack

Patch Information

The YesWiki maintainers addressed the issue in version 4.6.7 by rewriting the vulnerable markdown-link regex in wakka.php. Review the fix and upgrade guidance in the GitHub Security Advisory.

Workarounds

  • Require authentication on edit and preview endpoints via web server access controls until the patch is applied
  • Enforce a strict maximum request body size for YesWiki endpoints at the reverse proxy layer
  • Add a WAF signature that rejects POST bodies with more than a small threshold of consecutive [ characters
  • Reduce PHP-FPM pm.max_children request timeouts to limit per-request CPU consumption and accelerate worker recycling
bash
# Configuration example
# nginx: cap request body size and block bracket floods to YesWiki edit paths
client_max_body_size 64k;

location ~ ^/\?.*action=edit {
    if ($request_body ~* "\[{50,}") { return 400; }
}

# php-fpm pool: reclaim stuck workers quickly
# /etc/php/8.2/fpm/pool.d/www.conf
request_terminate_timeout = 5s
request_slowlog_timeout = 2s
slowlog = /var/log/php-fpm/slow.log

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.