All vulnerabilities

Servers and applications

CVE-2026-52770

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

Severity
High 7.5
Published
2 Jun 2026
Last changed
22 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
4.6.6
Exploit chance
0.5% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
SQL injection (CWE-89)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-qg78-vmvc-fhjw
Sources
Project advisories (GitHub)

Description

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.

The public Bazar API reads attacker-controlled query filters from GET parameters:

Relevant public routes include:

The query is passed into BazarListService::getEntries() and then into SearchManager::search():

The vulnerable sink is in SearchManager::buildQueriesConditions():

Because numeric values are not quoted, SQL syntax remains active after escaping. For example, the following value is accepted as part of the numeric expression:

This produces a predicate equivalent to:

From YesWiki/yeswiki's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
YesWikiServers and applications · github:yeswiki/yeswiki
  • Every version before 4.6.6

About YesWiki

Free wiki-style software for building online sharing and collaboration platforms

From Wikidata, CC0 1.0.
GitHub stars
139GitHub, 15 Nov 2026
Forks
75GitHub, 15 Nov 2026
Latest release
v4.7.2GitHub, 15 Nov 2026
Released
1 Nov 2026GitHub
License
AGPL-3.0GitHub
Written in
PHPWikidata
First released
2009Wikidata
First published on GitHub
9 Sept 2009GitHub

References