Skip to main content
Vulnerability Database/CVE-2026-115328

CVE-2026-115328: JSON-SCADA SQL Injection Vulnerability

CVE-2026-115328 is a SQL injection flaw in JSON-SCADA that allows authenticated users to inject SQL via HistoryReadRequest parameters. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-115328 Overview

CVE-2026-115328 is a SQL injection vulnerability in JSON-SCADA versions prior to 0.65-alpha. The flaw resides in the opcApi() function within src/server_realtime_auth/index.js. Authenticated users can inject SQL through HistoryReadRequest parameters, specifically NodeId.Id, StartTime, and EndTime values. The injection supports stacked statements, enabling attackers to read, modify, or delete historian data across all locations regardless of their assigned role. The vulnerability maps to CWE-89: Improper Neutralization of Special Elements used in an SQL Command.

Critical Impact

Any authenticated user, including low-privilege accounts, can tamper with industrial historian data by injecting arbitrary SQL through the OPC HistoryRead API, bypassing role-based access controls.

Affected Products

  • JSON-SCADA versions prior to 0.65-alpha
  • The vulnerable component is src/server_realtime_auth/index.js (OPC HistoryRead API handler)
  • Deployments exposing the real-time authentication server to authenticated users

Discovery Timeline

  • 2026-10-22 - CVE-2026-115328 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-115328

Vulnerability Analysis

JSON-SCADA is an open-source supervisory control and data acquisition (SCADA) platform that exposes an OPC UA-compatible HistoryRead interface over its real-time authenticated API. The opcApi() handler accepts a HistoryReadRequest payload and uses user-supplied values to query the historian database.

The handler incorporates NodeId.Id, StartTime, and EndTime fields directly into database queries without parameterization or input sanitization. Because the backend supports stacked statements, injected SQL executes alongside the intended query. The authorization layer is applied at the API boundary, not at the data layer, so injected statements run with the privileges of the database connection rather than the caller's role.

Root Cause

The root cause is improper neutralization of special characters in SQL commands [CWE-89]. User-controlled fields from the HistoryReadRequest JSON payload are concatenated into SQL query strings instead of being bound as parameters. Role-based access checks occur before the query is built but do not restrict which records the resulting SQL touches.

Attack Vector

An attacker authenticates to the JSON-SCADA real-time server with any valid account. The attacker submits a HistoryReadRequest to the OPC API endpoint and places SQL payloads inside NodeId.Id, StartTime, or EndTime. Stacked statements such as ; UPDATE ... or ; DELETE ... execute against the historian store. The result is unauthorized read, modification, or deletion of time-series process data across every historian location in the deployment.

The vulnerable code region is documented at JSON-SCADA server_realtime_auth/index.js lines 2175–2224.

text
// Patch excerpt from the V0.65-alpha release commit
// Source: https://github.com/riclolsen/json-scada/commit/60b65bcd42d6ee21aa8587580ec778c3bb9b4755
// The release commit updates driver catalog and UI options alongside
// the server-side input handling fixes for the OPC HistoryRead API.
// Refer to the full commit diff for the sanitization and query-binding
// changes in src/server_realtime_auth/index.js.

Source: GitHub commit 60b65bc

Detection Methods for CVE-2026-115328

Indicators of Compromise

  • Requests to the OPC API with HistoryReadRequest payloads containing SQL metacharacters such as ';, --, /*, or keywords like UNION, UPDATE, DELETE, DROP inside NodeId.Id, StartTime, or EndTime.
  • Historian records with timestamps or values that do not align with upstream device telemetry, indicating tampering.
  • Unexpected rows missing from or appended to historian tables outside the account's normal location scope.
  • Database error messages logged by server_realtime_auth referencing syntax errors during HistoryRead handling.

Detection Strategies

  • Enable verbose request logging on the JSON-SCADA real-time server and parse HistoryReadRequest fields for non-numeric content in StartTime and EndTime.
  • Deploy a web application firewall (WAF) rule in front of the API to block SQL metacharacters in OPC request bodies.
  • Correlate authenticated API activity with database audit logs to flag queries that touch records outside the user's authorized location set.

Monitoring Recommendations

  • Forward JSON-SCADA application and database logs to a centralized analytics platform for query pattern analysis.
  • Alert on any authenticated session issuing stacked statements or multi-statement queries against the historian database.
  • Track per-user HistoryRead volume and alert on sudden spikes that suggest automated enumeration.

How to Mitigate CVE-2026-115328

Immediate Actions Required

  • Upgrade JSON-SCADA to version 0.65-alpha or later, which contains the fix referenced in commit 60b65bc.
  • Rotate credentials for all JSON-SCADA accounts, assuming any authenticated user could have exploited the flaw.
  • Audit historian data for unauthorized modifications and restore from backup where tampering is confirmed.
  • Restrict network access to the real-time authentication server so only trusted operator workstations can reach the OPC API.

Patch Information

The fix is included in the JSON-SCADA V0.65-alpha release. The upstream repository is available at riclolsen/json-scada on GitHub, and the remediation commit is published at commit 60b65bc. Additional advisory context is available in the VulnCheck Security Advisory.

Workarounds

  • Disable or firewall the OPC HistoryRead API endpoint until the upgrade is applied.
  • Remove or disable low-privilege accounts that do not require historian access.
  • Place a reverse proxy in front of the API to reject payloads whose StartTime or EndTime values are not valid ISO 8601 timestamps and whose NodeId.Id contains SQL metacharacters.
bash
# Example upgrade workflow for a JSON-SCADA deployment
git fetch --tags
git checkout V0.65-alpha
# Rebuild and restart the real-time authentication service
npm install --prefix src/server_realtime_auth
systemctl restart json-scada-server_realtime_auth
# Verify the running version
git describe --tags

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.