CVE-2026-52770

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

Published Sep 4, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Yeswiki
Yeswiki yeswiki
Vendors & Products Yeswiki
Yeswiki yeswiki
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'}

Weaknesses
  • CWE-89

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 8, 2026, 6:02 PM
Reserved
Jun 8, 2026, 5:13 PM
Status
Deferred
Published
Sep 5, 2026, 12:17 AM
Modified
Sep 8, 2026, 9:05 PM