mh0m@research:~$

CVE-2026-125439: a paywall that guarded one field and served the next

5 min read

I reported a Member Content bypass in Kit, formerly ConvertKit, the WordPress plugin with about 40,000 active installations. It affects 3.5.0 and below and was fixed in 3.5.1. Kit published it as GHSA-mwjf-fm84-fg65 with CVE-2026-125439.

A missed field is not much of a story on its own. What makes this one worth writing up is that missing a single field gave away everything, and that the release which fixed it is safe partly by accident.

Member Content

Member Content is the plugin's paywall. You mark a post as restricted to subscribers of a Kit product, tag or form, and a visitor who is not subscribed gets a short preview and a sign-up prompt instead of the article.

That restriction has to be applied everywhere the post body can come out, not just on the page a browser renders. Version 3.4.8 did a round of exactly that work: it added Member Content restrictions to the REST API, to RSS and Atom feeds, to archives and to the WooCommerce Store API. The same release added maybe_restrict_feed_excerpt(), hooked to the_excerpt_rss, because a feed excerpt is also built from the post body.

So the author had already thought about excerpts. Just not in the REST API.

One body, three fields

A WordPress post has one stored body, post_content. The REST API derives more than one field from it. content.rendered is the body run through the usual filters. excerpt.rendered is the post's manual excerpt if one exists, and otherwise an excerpt that WordPress generates from the body on the spot.

The plugin's REST filter restricted content.rendered:

// includes/class-convertkit-output-restrict-content.php, 3.4.9

public function maybe_restrict_rest_content( $response, $post ) {
    if ( ! isset( $response->data['content']['rendered'] ) ) { return $response; }
    if ( current_user_can( 'edit_post', $post->ID ) ) { return $response; }
    if ( $this->can_view_post( $post->ID ) ) { return $response; }

    // condensed. only content.rendered is replaced; excerpt.rendered is left intact
    $response->data['content']['rendered'] = $this->get_content_preview( ... );
    return $response;
}

excerpt.rendered sits in the same response object, built from the same body, and is never touched. Ask for a restricted post over the REST API and the paywall holds in one field while the article arrives in another.

The restriction was attached to a field rather than to the data.

How much of the article

An excerpt is supposed to be short, so you might expect a trickle rather than a leak. The default is 55 words.

Except the caller picks the number. WordPress 6.6 added an excerpt_length parameter to the REST posts controller, and it is available to unauthenticated callers:

// wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

if ( isset( $request['excerpt_length'] ) ) {          // line 2016
    $excerpt_length          = $request['excerpt_length'];
    $override_excerpt_length = static function () use ( $excerpt_length ) {
        return $excerpt_length;
    };
    add_filter( 'excerpt_length', $override_excerpt_length, PHP_INT_MAX );
}

In the lab, a restricted post with a 518 character body answers a single request like this:

GET /?rest_route=/wp/v2/posts/4&excerpt_length=100000

content.rendered   340 chars, truncated at the preview, no END-OF-PAID-BODY marker
excerpt.rendered   518 chars, the complete article, both markers present

Swap the single post for /wp/v2/posts?per_page=100 and you have every restricted post on the site in one request.

The guard that skipped itself

A second route exists, and it is the one the maintainer named in the fix.

Look at the first line of the filter again, this time with the comment that sits above it in the source:

// includes/class-convertkit-output-restrict-content.php, 3.4.9, line 802

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

_fields was not overlooked. It is named in the comment. The author saw that a caller could ask for a response without the content field, and wrote the bail for exactly that case.

What the bail does not account for is that such a response can still carry an excerpt. _fields=id,excerpt has no content key and an excerpt that very much needs restricting. The filter returns immediately, having restricted nothing, and the excerpt goes out untouched regardless of what excerpt_length says.

The protection was conditional on the presence of the field it protected. Ask for everything except the thing being guarded, and the guard stands down.

The fix, and a line number that matters

3.5.1 continues when either field is present, and where content is absent from the response it renders the post itself to build the preview before overwriting the excerpt. It also went wider than what I reported, covering attachments, search results and AJAX requests.

When I checked the fix I expected excerpt_length to still bite. The plugin's fallback preview, for a post with no more tag and no Read More block, is an excerpt of the full body, sized by the same excerpt_length filter. If the attacker still controlled that number, the new preview would stretch right back over the article.

It does not bite, and the reason is three line numbers in someone else's file:

2016   core installs the attacker's excerpt_length override
2041   core removes it, right after generating the excerpt
2198   rest_prepare_{post_type} fires, and the plugin's filter runs here

By the time the plugin asks WordPress for an excerpt, the override is 157 lines gone and the default is back. In 3.4.9 the leak worked precisely because the plugin never touched excerpt.rendered, so core generated it while the override was still live.

The plugin is safe here, but only because core happens to remove its own filter before the hook the plugin uses. That deserves knowing rather than relying on. A fallback preview sized by a filter anyone can hook is a cap you do not control.

I had this wrong twice before I lined the numbers up. When a finding turns on a filter's lifetime rather than its value, read where it is installed and where it is removed, and compare both to where your own code runs.

One note on the handling. The report sat for a while, and then the whole thing happened in a single morning: 3.5.1 released, the report acknowledged, the advisory published with a CVE, and the reporter credited. The fix went wider than what I sent, into attachments, search results and AJAX, which means someone went looking for the rest of the class rather than closing the one case in front of them. Publishing an advisory and requesting a CVE, rather than folding the fix quietly into a point release, is a choice, and it is the right one.

A reproduction, with a disposable Docker lab and the request transcript, is at CVE-2026-125439-poc.

← back to posts