Loading...
Skip to main content

CVE-2026-52775 — Vulnerability in yeswiki/yeswiki — CVE Details

HIGH

YesWiki has Authenticated SQL Injection via ReactionManager

Published July 9, 2026Updated July 9, 2026Source: osv

Summary

## Summary YesWiki through the latest development branch contains a SQL injection vulnerability in `ReactionManager::deleteUserReaction()` that allows any authenticated user to inject arbitrary SQL via the `{idreaction}` and `{id}` URL path parameters. The parameters are concatenated directly into a SQL LIKE clause without escaping or parameterization. This is a sibling of CVE-2026-46670 (unauthenticated SQLi in `FormManager::create()`). Both share the same root cause — raw string concatenation into SQL queries — but exist in different components. ## Root Cause `includes/controllers/ApiController.php` line 726: ```php /** * @Route("/api/reactions/{idreaction}/{id}/{page}/{username}", methods={"DELETE"}, options={"acl":{"+"}}) */ ``` ACL `"+"` = any authenticated user. Parameters flow into `ReactionManager::deleteUserReaction()` → `TripleStore::delete()` with raw string concatenation into SQL LIKE clause (line 356). The `if` branch (lines 340-354) properly uses `$this->dbService->escape()`. The `else` branch does not — the developer applied escaping to one code path but not the other. ## PoC ``` DELETE /wiki/?api/reactions/x%27%20OR%201=1%20OR%20value%20LIKE%20%27/test/SomePage/attacker Host: localhost:8085 Cookie: <session cookie> ``` Time-based blind variant via `{id}` parameter for data exfiltration. ## Impact Full database read/write. Any self-registered user can extract `yeswiki_users` password hashes and emails. ## Suggested Fix Apply `$this->dbService->escape()` to all parameters in the `else` branch, matching the `if` branch pattern. Also audit all `TripleStore::delete()` callers that pass `$extraSQL`. ## Credits Kai Aizen / SnailSploit

Advisory Timeline

  • First published July 9, 2026 (95 days ago).
  • Last revised July 9, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update yeswiki/yeswiki to 4.6.6 or later
composer require "yeswiki/yeswiki:^4.6.6"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
yeswiki/yeswiki
packagist
4.2.3, v4.1.0, v4.1.1, v4.1.2 (+27 more)4.6.6

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-52775?
YesWiki has Authenticated SQL Injection via ReactionManager This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-52775?
CVE-2026-52775 affects yeswiki/yeswiki. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-52775 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-4pf7-cc4r-g63h

Related CVEs

  • CVE-2026-52766
    CRITICAL

    YesWiki vulnerable to unauthenticated arbitrary page deletion via `{{erasespamedcomments}}` action

  • CVE-2026-52777
    CRITICAL

    YesWiki Vulnerable to Authenticated PHP Object Injection in BazarImportAction via unserialize

  • CVE-2026-46670
    CRITICAL

    YesWiki: Unauthenticated SQL Injection

  • CVE-2024-51478
    HIGH

    YesWiki Uses a Broken or Risky Cryptographic Algorithm

  • CVE-2025-46347
    HIGH

    YesWiki Remote Code Execution via Arbitrary PHP File Write and Execution

  • CVE-2026-52771
    HIGH

    YesWiki: Second-Order SQL Injection in Page Delete API via Unescaped Page Tag (`ApiController::deletePage`)

  • CVE-2026-41143
    HIGH

    YesWiki vulnerable to authenticated SQL Injection via id_fiche in EntryManager::formatDataBeforeSave()

  • CVE-2026-52767
    HIGH

    YesWiki Vulnerable to Unauthenticated ActivityPub Signature-Verification Bypass via `!openssl_verify(...)` accepting `int(-1)`

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies