Summary
CVE-2026-116207 is an unauthenticated SQL injection vulnerability (CWE-89) in SearchManager::prepareSearchRequest() in YesWiki. It affects YesWiki 4.6.0 before 4.7.0 and 5.0.0-alpha1 before 5.0.0-alpha4. The CVE record lists a CVSS v4.0 score of 8.8 (High) and a CVSS v3.1 score of 9.1 (Critical). An attacker can use it to read sensitive data, such as password hashes, from the database.
Technical details
- Root cause: Field names taken from query parameters flow into SQL construction without proper escaping. The GitHub advisory says only
mysqli_real_escape_string()is applied. That function escapes string-literal characters but not backticks, and the field names sit inside backtick-quoted identifiers. - Trigger conditions: The attacker sends a field name containing a backtick, which breaks out of the identifier context. No authentication is required.
- Attack vector: Network. The advisory names the public Bazar API routes
GET /api/forms/{formId}/entries/{output}/{selectedEntries}and/api/entries/bazarlist, using thequeryorsearchfieldsparameters. - Impact: The attacker can inject subqueries and read database contents, including user password hashes. The CVSS v3.1 vector rates confidentiality and availability impact as High and integrity impact as None.
Affected software
- YesWiki 4.6.0 up to, but not including, 4.7.0
- YesWiki 5.0.0-alpha1 up to, but not including, 5.0.0-alpha4
Severity
- CVSS v4.0: 8.8 (High),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS v3.1: 9.1 (Critical),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Mitigation and recommended actions
- Immediate: Upgrade to YesWiki 4.7.0 or later. On the 5.0 pre-release branch, upgrade to 5.0.0-alpha4 or later.
- If you cannot patch: The advisory recommends an interim mitigation of blocking the public Bazar API routes listed above at the network layer until you upgrade.
- Consider rotating credentials for instances that were exposed while running an affected version.

