/

CVE-2026-129540

Severity:

HIGH RISK

(8.8)

SQL Injection (CWE-89) in VoAPI List Endpoint Filters

CVE-2026-129540

Received

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Sensitive Data Disclosure and Privilege Escalation

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

VoAPI list endpoints can be vulnerable to SQL injection when authenticated users supply crafted column names as search filter keys. Successful exploitation may expose the JWT signing secret, allowing an attacker to forge a manager token and gain access to management APIs.

Affected context

The issue affects VoAPI versions 1.0.0 through 1.2.0. It occurs in list endpoints, such as GET /api/log, when search filter keys derived from user input are incorporated into SQL queries without appropriate validation or safe query construction.

Exploit preconditions

  • Attack surface: VoAPI list endpoints that accept search[...] filters
  • Required access: An authenticated account able to make requests to an affected endpoint
  • Trigger point: Processing a crafted column name supplied as a search filter key
  • Why exploitation is possible: User-controlled identifiers may influence SQL query construction, potentially exposing sensitive database values such as the JWT signing secret

Why this happens

The underlying issue is SQL injection, mapped to CWE-89: Improper Neutralization of Special Elements used in an SQL Command. The vulnerable pattern is allowing untrusted input to influence SQL structure, such as column identifiers, rather than constraining it to known-safe values. Parameterized queries protect values, while identifiers generally require explicit allowlisting or safe query-builder support.

Potential impact

  • An attacker may read sensitive data from the database, including the HS256 JWT signing secret.
  • A stolen signing secret could allow an attacker to forge tokens with elevated roles.
  • Forged manager credentials could enable takeover of the /api/m/* management API.
  • Database confidentiality and application integrity could be compromised.

General mitigation guidance

Defensive approaches focus on keeping untrusted input out of SQL structure and limiting the consequences of credential exposure.

  • Use parameterized queries for user-supplied values.
  • Map accepted filter keys to a fixed allowlist of database columns; reject unknown identifiers.
  • Prefer query-building APIs that safely handle identifiers and filter conditions.
  • Restrict database-account permissions to the minimum required for application operation.
  • Protect signing secrets with appropriate access controls and support rotation, while avoiding reliance on secret protection as the sole SQL injection defense.
  • Apply least privilege to management roles and validate authorization on every management operation.

How teams detect issues like this

  • Use static analysis to identify query construction that incorporates request parameters, especially filter keys or column identifiers.
  • Review list endpoints and query-builder calls for missing allowlists or unsafe string concatenation.
  • Enforce code-review and CI policies that require safe query patterns for database access.
  • Monitor for unusual filter keys, unexpected database errors, suspicious reads of sensitive option records, and anomalous use of manager-level APIs.
  • Automated security review tools may help flag potentially unsafe query construction.

Sources

SourceLink
github.comgithub.com/VoAPI/VoAPI/issues/78
vul.yulun.ac.cnvul.yulun.ac.cn/20261115/voapi/
vulncheck.comvulncheck.com/advisories/voapi-1.0.0-through-1.2.0-sql-injection-via-search-filter-key

Frequently asked

questions

The described attack requires an authenticated user who can reach an affected list endpoint and submit search filters.

SQL injection may expose the HS256 JWT signing secret. If obtained, that secret could be used to forge a manager-role token and access management APIs.

Keep user input from controlling SQL structure. Use parameterized queries for values and a strict allowlist for filter columns and other identifiers.

Apply safe database query patterns consistently, review filter handling across endpoints, and use static analysis and code-review policies to catch unsafe query construction.

Find out what's already
exploitable in your codebase.