Description
YesWiki is a wiki system written in PHP. Prior to version 4.6.6, YesWiki’s public Bazar entry-listing APIs are vulnerable to unauthenticated SQL injection in numeric query / queries filters. For Bazar fields whose value structure is numeric, YesWiki escapes the attacker-controlled filter value but inserts it into SQL without quotes or numeric validation. An unauthenticated attacker can inject boolean SQL expressions and infer database contents from whether entries are returned. This issue has been patched in version 4.6.6.
Published: 2026-09-04
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an SQL injection flaw present in the public Bazar entry‑listing APIs of YesWiki. For fields that are defined as numeric, the software escapes the filter value but fails to quote or validate it, allowing an attacker to inject boolean SQL expressions. An unauthenticated user can manipulate the query filter in a request and determine whether specific database rows are returned, effectively exposing database contents. The weakness is a classic injection flaw, documented as CWE‑89.

Affected Systems

YesWiki installations running any version prior to 4.6.6 and exposing the public Bazar entry‑listing APIs are impacted. This includes all hosts that have the default API endpoints accessible without authentication, regardless of the site’s overall access controls.

Risk and Exploitability

The vulnerability carries a CVSS score of 7.5, indicating high severity. While the EPSS score is not provided, the absence does not negate the risk; the flaw remains fully exploitable by any unauthenticated user who can reach the API. The issue is not in CISA’s KEV catalog, but its potential for data exposure and the lack of required privileges make it a significant threat. Exploitation would require only a crafted HTTP request to the vulnerable API; further steps are unnecessary as the flaw does not grant arbitrary code execution or elevation of privileges.

Generated by OpenCVE AI on September 5, 2026 at 00:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade YesWiki to version 4.6.6 or later. This patch removes the SQL injection vector by properly quoting numeric filters or adding validation.
  • Disable or restrict access to the public Bazar entry‑listing APIs until the software is updated, for example by adjusting web server rules or application settings to require authentication.
  • Validate any remaining numeric filter inputs by ensuring they contain only numeric characters before incorporating them into SQL queries, and use parameterized queries or explicit type casting when constructing database statements.

Generated by OpenCVE AI on September 5, 2026 at 00:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qg78-vmvc-fhjw YesWiki: SQL Injection possible through public Bazar entry-listing APIs via numeric `query`/`queries` filters
History

Fri, 04 Sep 2026 23:45:00 +0000

Type Values Removed Values Added
Description YesWiki is a wiki system written in PHP. Prior to version 4.6.6, YesWiki’s public Bazar entry-listing APIs are vulnerable to unauthenticated SQL injection in numeric query / queries filters. For Bazar fields whose value structure is numeric, YesWiki escapes the attacker-controlled filter value but inserts it into SQL without quotes or numeric validation. An unauthenticated attacker can inject boolean SQL expressions and infer database contents from whether entries are returned. This issue has been patched in version 4.6.6.
Title Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in yeswiki/yeswiki
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-04T23:41:14.854Z

Reserved: 2026-06-08T17:13:43.064Z

Link: CVE-2026-52770

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-05T00:17:19.827

Modified: 2026-09-05T00:17:19.827

Link: CVE-2026-52770

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-05T00:30:18Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')