All vulnerabilities

Servers and applications

GHSA-4333-x9p4-8xj7

Unauthenticated blind SQL injection in YesWiki `{{newtextsearch}}` via unescaped Bazar list option id

Severity
High 7.5
Published
1 Sept 2026
Last changed
1 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
4.6.7
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
Sources
Project advisories (GitHub)

Description

YesWiki's {{newtextsearch}} search action contains an unauthenticated, blind SQL injection that lets any anonymous visitor read arbitrary attacker-chosen data from the database (any table/column the application's database user can read). On a default install (open write/read ACLs), an attacker plants a malicious value into an existing Bazar list, then uses a search request as a boolean oracle — demonstrated end-to-end by extracting an admin account's name, email, and password hash.

actions/newtextsearch.php builds the search WHERE clause by concatenating values derived from Bazar list ("EnumField") options directly into body REGEXP '…' / body LIKE '…' SQL fragments. The phrase itself ($phraseFormatted) is escaped with $dbService->escape(), but the corresponding option node id ($result['key']) at actions/newtextsearch.php:127 and :129 is concatenated with no escaping at all.

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

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