BuzzPHP
LightDarkSystem

YesWiki: SQL Injection possible through public Bazar entry-listing APIs via numeric `query`/`queries` filters

High severity. Published 9 July 2026. Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Which versions are affected?

PackageAffected versionsFixed in
yeswiki/yeswiki (opens in a new tab)< 4.6.64.6.6

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show yeswiki/yeswiki
composer audit

Advisory details

SeverityHighCVSS 7.5
Published
Updated
CVECVE-2026-52770 (opens in a new tab)
GHSAGHSA-qg78-vmvc-fhjw (opens in a new tab)
WeaknessCWE-89

What the advisory says

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

Details 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():

Source: GHSA-qg78-vmvc-fhjw (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories