CVE-2026-4730 MEDIUM

CVE-2026-4730: Charts Ninja: Create Beautiful Graphs & Charts and Easily Add Them to Your Website <= 2.1.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'chartid' Shortcode Attribute

Vendor Commonninja
Product Charts Ninja: Create Beautiful Graphs & Charts and Easily Add Them to Your Website
Weakness CWE-79 · XSS
Published May 5, 2026
Last update May 5, 2026

CVSS base score

6.4/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

Charts Ninja contains a cross-site scripting (XSS) vulnerability in versions up to 2.1.0. An authenticated user with low privileges can inject malicious scripts that execute in other users' browsers, potentially stealing session data or performing actions on their behalf. The vulnerability affects the entire site scope due to how the application processes user input.

What an attacker can do

03Attacker Capabilities

Inject malicious scripts that run in other users' browsers and steal their session data or perform actions on their behalf.

Potential impact on your site

04Site Impact

Any authenticated user can compromise other users' accounts or sessions; attackers can deface content or steal admin credentials.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privilege account on the site; no user interaction required from the victim.

Key dates

06Disclosure timeline

May 5, 2026 CVE published
May 5, 2026 Record updated