---
id: CVE-2026-100158
title: >-
  The SQL Chart Builder plugin for WordPress is vulnerable to Stored Cross-Site
  Scripting via the 'X-axis column value ($value->$xarg_s from
  $wpdb->get_results())' parameter in all versions up to, and including, 3.0.6
  due to insufficient i…
summary: >-
  The SQL Chart Builder plugin for WordPress is vulnerable to Stored Cross-Site
  Scripting via the 'X-axis column value ($value->$xarg_s from
  $wpdb->get_results())' parameter in all versions up to, and including, 3.0.6
  due to insufficient i…
severity: medium
cvss: 6.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
vendor: elvinhaci
product: SQL Chart Builder
affected:
  - sql_chart_builder <= 3.0.6
published: '2026-10-16'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T15:16:57.950'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-100158'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/sql-chart-builder/tags/3.0.6/functions.php#L1019
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/sql-chart-builder/tags/3.0.6/functions.php#L1093
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/sql-chart-builder/tags/3.0.6/functions.php#L1101
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/sql-chart-builder/tags/3.0.6/functions.php#L579
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/sql-chart-builder/tags/3.0.6/functions.php#L820
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/changeset?reponame=&old=3725657%40sql-chart-builder&new=3725657%40sql-chart-builder
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/16375398-c5c9-465f-9a2f-4c08f76b090b?source=cve
    label: security@wordfence.com
tags:
  - nvd
  - cve.org
epss: 0.00195
epssPercentile: 0.09139
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-16T14:34:41.886031Z'
ingestedAt: '2026-10-16T06:00:00.396Z'
---

## Overview

The SQL Chart Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'X-axis column value ($value->$xarg_s from $wpdb->get_results())' parameter in all versions up to, and including, 3.0.6 due to insufficient input sanitization and output escaping. 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. This requires an administrator to have published a chart whose SQL query returns a column controllable by a lower-privileged user, such as wp_users.display_name, which a Subscriber can populate with a payload via the standard WordPress profile page at /wp-admin/profile.php.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
