Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSelf-register or obtain subscriber-level WordPress account
-
DeliveryPOST crafted XSS payload in `content` parameter with `comment_approved=1`
-
ExploitPlugin passes unsanitized `comment_content` to `wp_insert_comment()`
-
ExecutionMalicious comment stored in database, immediately approved without moderation
-
PersistVictim loads affected WordPress page
-
ImpactInjected script executes in victim's browser session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated WordPress account with subscriber-level access or above on the target site running JSON API User plugin version 4.1.0 or earlier. The vulnerable endpoint is |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N, score 6.4) reflects network-accessible exploitation with low complexity, requiring only a subscriber-level account, with a scope change indicating the impact escapes the WordPress server and executes in victim browsers. The PR:L requirement is the primary friction point: on sites with closed registration, an attacker must already possess or compromise a subscriber account, which meaningfully reduces exposure. On sites with open registration, however, this barrier is effectively removed and the vulnerability becomes exploitable by any internet user willing to self-register. The self-approval bypass ( |
| Exploit ScenarioDerived | An attacker self-registers a subscriber account on a WordPress site with open registration enabled, then sends a crafted POST request to the plugin's |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 03, 2026
Stored Cross-Site Scripting in the JSON API User WordPress plugin (versions ≤ 4.1.0) allows authenticated attackers with subscriber-level or higher access to inject persistent JavaScript via the content parameter of the post_comment API endpoint. The plugin's post_comment() function passes attacker-controlled comment_content directly to WordPress's native wp_insert_comment() without any HTML sanitization, and a compounding design flaw permits callers to supply comment_approved=1 to self-approve comments and entirely bypass the WordPress moderation queue. No public exploit code or CISA KEV listing is confirmed at time of analysis; however, the CVSS scope-change flag (S:C) and low authentication barrier make this a meaningful risk on any site permitting open user registration.
RemediationAI
Update the JSON API User plugin to version 4.1.2 or later, which addresses the missing sanitization in post_comment() and the unauthorized comment_approved self-approval, as evidenced by the Trac changeset at https://plugins.trac.wordpress.org/changeset?old_path=%2Fjson-api-user/tags/4.1.0&new_path=%2Fjson-api-user/tags/4.1.2. If immediate patching is not feasible, disabling the JSON API User plugin entirely removes the vulnerable endpoint with no impact on core WordPress functionality - this is the recommended interim control. As a secondary compensating measure, disabling open user registration (WordPress Admin → Settings → General → uncheck 'Anyone can register') prevents unauthenticated threat actors from self-provisioning the subscriber accounts needed to exploit this vulnerability; note this does not protect against pre-existing untrusted subscriber accounts. A WAF rule blocking <script> or event-handler injection in API comment payloads can provide additional depth-in-defense, though WAF bypasses are common for XSS and this should not be treated as a primary control.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The JSON API User plugin (vendor: parorrey, CPE: cpe:2.3:a:parorrey:json_api_user:*:*:*:*:*:*:*:*) extends WordPress with REST-like API endpoints for user management and content interaction. The vulnerability is rooted in CWE-79 (Improper Neutralization of Input During Web Page Generation) and is localized to the post_comment() function within controllers/User.php (publicly browsable at lines 979, 995, and 1007 in the 4.1.0 tag). The function accepts the caller-supplied content parameter and channels it as comment_content into WordPress's wp_insert_comment() without invoking standard sanitization routines such as wp_filter_comment() or kses-based HTML filtering. A second independent flaw in the same function accepts and honors a caller-supplied comment_approved=1 parameter, granting low-privileged API callers the ability to bypass the site's comment moderation queue - a capability normally reserved for editors and administrators. Together, these two weaknesses allow a subscriber-level account to persistently store executable script payloads that fire in any site visitor's browser on page load.
Know when Json Api User gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Stored XSS requires a victim to visit the injected page (UI:R); subscriber-level account to plant payload (PR:L); scope change reflects browser context escape (S:C).
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The JSON API User plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'content' parameter of the post_comment API endpoint in versions up to, and including, 4.1.0 This is due to insufficient input sanitization in the post_comment() function, which passes the attacker-controlled comment_content value directly to wp_insert_comment() without applying any HTML sanitization, and additionally allows the caller to set comment_approved=1 to self-approve the comment and bypass moderation. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-41490
GHSA-4689-rgvq-62r3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB