Description
The JSON API Auth plugin for WordPress is vulnerable to Authentication Bypass via Cached Session Cookie Disclosure in all versions up to, and including, 3.1.2. The vulnerability exists because the required PI-Media/json-api parent plugin caches controller dispatch results in transients keyed solely by URI and query string, ignoring HTTP method and POST body; this causes the `generate_auth_cookie()` endpoint — which embeds a live WordPress `logged_in` cookie produced by `wp_generate_auth_cookie()` directly in its JSON response body — to serve that cached authenticated response to any subsequent unauthenticated GET request to the same URI. This makes it possible for unauthenticated attackers to retrieve a valid Administrator `logged_in` session cookie from the cached response and use it to fully authenticate as the site Administrator, including via the same plugin's `get_currentuserinfo` endpoint and any cookie-authenticated controller action. Exploitation requires the PI-Media/json-api parent plugin to be installed and active with the Auth controller enabled, and a legitimate Administrator must have POSTed to `/api/auth/generate_auth_cookie/` within the preceding 24-hour cache TTL; the nominal HTTPS enforcement gate present in `Auth.php` is trivially bypassed by supplying `insecure=cool` as a request parameter.
Published: 2026-10-02
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Unauthenticated Authentication Bypass
Action: Immediate Patch
AI Analysis

Impact

The JSON API Auth plugin stores controller responses in transients keyed only by the request URI and query string. Because the generate_auth_cookie endpoint embeds a live WordPress logged_in cookie in its JSON body, the cached response can be returned to any subsequent unauthenticated GET request. This allows an attacker to retrieve a valid Administrator session cookie without authenticating, effectively granting full site administration. The weakness is an authentication bypass identified as CWE‑287.

Affected Systems

All installations of the JSON API Auth WordPress plugin up to and including version 3.1.2 are affected. The flaw also requires the PI‑Media/json‑api parent plugin to be installed, the Auth controller enabled, and at least one legitimate Administrator user to have posted to /api/auth/generate_auth_cookie/ within the previous 24‑hour cache time‑to‑live.

Risk and Exploitability

The vulnerability has a CVSS score of 9.8, indicating critical severity. EPSS information is not available and the flaw is not listed in CISA's KEV catalog. Exploitation requires prior admin activity to prime the cache, and the plugin’s nominal HTTPS enforcement can be bypassed by adding an insecure parameter. Once the cached authenticated response is obtained, the attacker can reuse the Privileged session cookie to access any admin‑protected controller or perform any authorized action. The combination of ease of discovery and high impact makes this vulnerability a significant risk for sites running the affected plugin version.

Generated by OpenCVE AI on October 2, 2026 at 08:36 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update JSON API Auth to the latest version (≥3.1.3) to eliminate the caching flaw.
  • Clear existing transients that contain cached authentication responses, for example by running "wp transient delete --all" or using a cache‑cleaning plugin. This removes any remaining privileged responses before the patch is applied.
  • As an interim safeguard, disable the Auth controller or block the /api/auth/generate_auth_cookie/ endpoint using server rules or site‑wide access restrictions until the plugin can be upgraded.

Generated by OpenCVE AI on October 2, 2026 at 08:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 03 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 02 Oct 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Parorrey
Parorrey json Api Auth
Wordpress-extensions
Wordpress-extensions json Api Auth
Vendors & Products Parorrey
Parorrey json Api Auth
Wordpress-extensions
Wordpress-extensions json Api Auth

Fri, 02 Oct 2026 07:45:00 +0000

Type Values Removed Values Added
Description The JSON API Auth plugin for WordPress is vulnerable to Authentication Bypass via Cached Session Cookie Disclosure in all versions up to, and including, 3.1.2. The vulnerability exists because the required PI-Media/json-api parent plugin caches controller dispatch results in transients keyed solely by URI and query string, ignoring HTTP method and POST body; this causes the `generate_auth_cookie()` endpoint — which embeds a live WordPress `logged_in` cookie produced by `wp_generate_auth_cookie()` directly in its JSON response body — to serve that cached authenticated response to any subsequent unauthenticated GET request to the same URI. This makes it possible for unauthenticated attackers to retrieve a valid Administrator `logged_in` session cookie from the cached response and use it to fully authenticate as the site Administrator, including via the same plugin's `get_currentuserinfo` endpoint and any cookie-authenticated controller action. Exploitation requires the PI-Media/json-api parent plugin to be installed and active with the Auth controller enabled, and a legitimate Administrator must have POSTed to `/api/auth/generate_auth_cookie/` within the preceding 24-hour cache TTL; the nominal HTTPS enforcement gate present in `Auth.php` is trivially bypassed by supplying `insecure=cool` as a request parameter.
Title JSON API Auth <= 3.1.2 - Unauthenticated Authentication Bypass via Cached 'generate_auth_cookie' Response
Weaknesses CWE-287
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Parorrey Json Api Auth
Wordpress-extensions Json Api Auth
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-10-03T15:42:48.332Z

Reserved: 2026-09-24T17:21:34.901Z

Link: CVE-2026-97637

cve-icon Vulnrichment

Updated: 2026-10-03T15:40:00.474Z

cve-icon NVD

Status : Deferred

Published: 2026-10-02T08:17:05.660

Modified: 2026-10-03T16:16:49.480

Link: CVE-2026-97637

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T14:45:43Z

Weaknesses