CVE-2026-74932 in WP Fastest Cache Plugininfo

Summary

by MITRE • 08/26/2026

The WP Fastest Cache WordPress plugin before 1.5.1 does not validate the Host header before using it to build the URLs of the asset files it embeds in the pages it caches, and does not include that header in the cache key, allowing unauthenticated attackers to poison cached pages with references to a server they control and have arbitrary JavaScript run for every subsequent visitor.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 08/26/2026

The vulnerability identified in WP Fastest Cache versions prior to 1.5.1 represents a critical security flaw rooted in improper validation of the HTTP Host header during cache generation processes. This issue allows unauthenticated attackers to perform host header injection attacks, which can lead to severe consequences for both website administrators and end users. The core technical deficiency lies in the plugin's failure to validate or sanitize the Host header before utilizing it to construct URLs for embedded asset files such as JavaScript, CSS, or images within cached pages. Furthermore, the cache key generation mechanism does not incorporate the Host header value, meaning that requests with different host values but identical paths and parameters will result in the same cached content being served regardless of the intended domain context.

From a technical perspective, this flaw exploits the fundamental assumption that web servers correctly handle multiple virtual hosts sharing an IP address by relying on the Host header to distinguish between them. When WP Fastest Cache generates static HTML files for caching purposes, it constructs absolute URLs pointing to resources like scripts and stylesheets based on the incoming request's Host header. Because there is no validation of this header against a whitelist of allowed domains or proper sanitization, an attacker can craft malicious HTTP requests with a forged Host header value pointing to their own server. When such a request triggers cache generation, the resulting cached page will contain references to assets hosted by the attacker rather than legitimate resources from the target website's domain.

The operational impact of this vulnerability is significant and multifaceted. Since the cache key does not include the Host header, once an attacker successfully poisons the cache with malicious asset URLs, that poisoned version becomes the canonical cached response for all subsequent visitors accessing the affected page via any host or subdomain associated with the vulnerable installation. This means every user who visits the site will have their browser load and execute JavaScript from the attacker-controlled server without any indication of compromise to the end-user. This scenario effectively transforms a caching optimization plugin into a vector for cross-site scripting attacks, enabling session hijacking, credential theft, defacement, or further malware distribution depending on what malicious code is injected via the hosted scripts.

This vulnerability aligns with CWE-16, which describes configuration errors involving trust boundaries and input validation failures, specifically relating to how applications handle external inputs that influence security-critical decisions like cache key generation and URL construction. In terms of offensive cybersecurity frameworks, this attack vector maps directly to MITRE ATT&CK technique T1078, Valid Accounts or Invalid Credentials for Initial Access when considering the broader context of web application exploitation, but more precisely it exemplifies aspects of Host Header Injection often categorized under injection-based attacks where untrusted data is used in command construction. The lack of proper validation allows attackers to bypass intended security controls and manipulate server behavior through header manipulation rather than traditional input fields or parameters.

Mitigation strategies must address both immediate remediation and long-term architectural improvements. The primary solution is upgrading WP Fastest Cache to version 1.5.1 or later, where the developers have implemented proper validation of the Host header against a predefined list of allowed domains before using it in URL construction. Additionally, cache keys should be generated using multiple request attributes including the host value to ensure that different virtual hosts receive distinct cached content even if other parameters match. Administrators unable to upgrade immediately can implement web application firewall rules to detect and block requests with suspicious or unexpected Host header values. It is also advisable to configure reverse proxies like Nginx or Apache to strip or normalize headers before they reach the PHP application layer, adding an additional defense-in-depth measure against host header manipulation attempts.

Beyond immediate fixes, organizations should adopt a security-first approach to caching implementations by ensuring that all dynamic content generation respects strict input validation policies regardless of whether data comes from form submissions, query parameters, or HTTP headers. Regular security audits and penetration testing focused on cache poisoning scenarios can help identify similar vulnerabilities in other plugins or custom code. Monitoring tools should be configured to detect unusual spikes in cache misses or changes in served asset origins which might indicate active exploitation attempts. By treating the Host header with the same level of scrutiny as user-supplied form data, developers can prevent these types of subtle but impactful attacks that compromise both site integrity and user trust through seemingly benign caching mechanisms.

Responsible

WPScan

Reservation

08/17/2026

Disclosure

08/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!