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

High severity, published 2026-07-09. Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Canonical URL: https://buzzphp.com/security/ghsa-qg78-vmvc-fhjw · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.5) |
| Published | 2026-07-09 |
| Updated | 2026-07-09 |
| CVE | [CVE-2026-52770](https://nvd.nist.gov/vuln/detail/CVE-2026-52770) |
| GHSA | [GHSA-qg78-vmvc-fhjw](https://github.com/advisories/GHSA-qg78-vmvc-fhjw) |
| Weakness | CWE-89 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| yeswiki/yeswiki | < 4.6.6 | 4.6.6 |

## What to do

Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Check which version you run with `composer show yeswiki/yeswiki`, and every affected package with `composer audit`.

## About this advisory

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



## Links

- [GHSA-qg78-vmvc-fhjw on GitHub](https://github.com/advisories/GHSA-qg78-vmvc-fhjw)
- [CVE-2026-52770 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-52770)
- [All Composer security advisories](https://buzzphp.com/security)
