Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2026-22428
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-22428 is a PHP Local File Inclusion (LFI) vulnerability in the AncoraThemes Tooth Fairy WordPress theme, classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program). It affects all versions of the Tooth Fairy theme up to and including version 1.16. The vulnerability was published on March 5, 2026, and was assigned by Patchstack. It carries a CVSS v3.1 base score of 8.1 (High) (Feedly, Patchstack).

Technical details

The root cause is improper control of filenames passed to PHP include/require statements within the Tooth Fairy theme (CWE-98), which allows an attacker to manipulate file path parameters to include arbitrary local files from the server's filesystem. The attack vector is network-based, requires no authentication or user interaction, but does have high attack complexity. By crafting malicious HTTP requests that supply attacker-controlled filenames to vulnerable include/require operations, a remote attacker can cause the PHP interpreter to load and execute unintended local files (Feedly).

Impact

Successful exploitation could allow a remote attacker to read sensitive files from the server (e.g., configuration files containing credentials, /etc/passwd), execute arbitrary PHP code if writable files or upload directories are accessible, and potentially achieve full compromise of the WordPress installation and underlying server. The vulnerability affects confidentiality, integrity, and availability — all rated HIGH — and could expose sensitive data or enable lateral movement within a hosting environment (Feedly).

Exploitability

As of the time of reporting, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.053%, indicating a low current probability of exploitation. The high attack complexity rating somewhat limits opportunistic exploitation, though the lack of authentication requirements remains a significant risk factor (Feedly).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites using the Tooth Fairy theme (version ≤ 1.16) via passive techniques such as inspecting HTML source for theme references (e.g., /wp-content/themes/tooth-fairy/) or using tools like WPScan.
  2. Identify vulnerable parameter: Analyze the theme's PHP source code or observed HTTP requests to locate parameters passed unsanitized to include/require statements.
  3. Craft malicious request: Construct an HTTP request that supplies a path-traversal payload (e.g., ../../../../etc/passwd or a path to a known writable/uploaded file) as the filename parameter.
  4. Trigger file inclusion: Send the crafted request to the target WordPress site, causing the server to include and process the specified local file.
  5. Escalate: If a PHP-executable file (e.g., a previously uploaded image containing PHP code) can be included, achieve remote code execution and establish persistence or exfiltrate data (Feedly).

Indicators of compromise

  • Network: Unusual HTTP GET/POST requests to WordPress pages with parameters containing path traversal sequences (e.g., ../, ..%2F, %2e%2e%2f) or references to sensitive system files.
  • Logs: Web server access logs showing requests with encoded or plaintext directory traversal strings targeting theme-related endpoints; PHP error logs indicating failed file inclusion attempts for unexpected paths.
  • File System: Unexpected PHP files in upload directories (e.g., /wp-content/uploads/) that may be used as payloads for code execution via LFI.
  • Process: Unusual child processes spawned by the web server process (e.g., apache2, nginx, php-fpm) such as shell commands or network utilities.

Mitigation and workarounds

No official patch from AncoraThemes has been confirmed as available for the Tooth Fairy theme. Site administrators should immediately consider disabling or removing the Tooth Fairy theme from production WordPress installations until a patched version is released. As interim mitigations: implement Web Application Firewall (WAF) rules to block path traversal and file inclusion patterns; enforce strict input validation and sanitization on all file path parameters; restrict PHP's open_basedir setting to limit accessible directories; and monitor server logs for suspicious file inclusion attempts. Contact AncoraThemes directly to inquire about patch availability and timeline (Feedly, Patchstack).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-88788MEDIUM6.8
  • text-styler
NoNoSep 19, 2026
CVE-2026-9858MEDIUM4.3
  • wc-partial-shipment
NoYesSep 19, 2026
CVE-2026-9766MEDIUM4.3
  • empik-for-woocommerce
NoYesSep 19, 2026
CVE-2026-9613MEDIUM4.3
  • datalogics
NoYesSep 19, 2026
CVE-2026-87848LOW3.7
  • mpcx-lightbox
NoNoSep 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management