YesWiki SQL injection leaks all credentials (CVE-2026-46670)
CVE-2026-46670
CVE-2026-46670: unauthenticated SQLi in YesWiki pre-4.6.4 reads entire database, including password hashes (CVSS 9.8). Update to 4.6.4 immediately.
Patch now - CVE-2026-46670 is a critical SQL injection vulnerability in YesWiki versions prior to 4.6.4 that lets any unauthenticated visitor read the entire database, including yeswiki_users.password hashes. Patched in version 4.6.4 - update immediately.
Overview
YesWiki is a popular open-source wiki system written in PHP, commonly used for collaborative documentation and community knowledge bases. The vulnerability exists in the Bazar form-import path, specifically within the FormManager::create() function. Because the flaw requires no authentication and no user interaction, any visitor who can reach a default YesWiki installation can exploit it remotely.
The injection occurs in an INSERT statement, meaning attackers are not limited to reading data. They can also manipulate the database, potentially creating new admin accounts, modifying wiki content, or planting persistent backdoors for later use. In a default installation, the application connects to the database with sufficient privileges to perform these destructive operations.
Impact
Successful exploitation grants the attacker complete read access to the YesWiki database. The most sensitive data stored is the yeswiki_users table, which contains password hashes for all registered users. While YesWiki uses salted hashing, offline cracking of weak or reused passwords remains a realistic threat.
Beyond credential theft, the attacker can:
- Create new administrator accounts and take full control of the wiki
- Modify or delete arbitrary wiki content
- Exfiltrate any other data stored in the database
- Potentially pivot to the underlying server if the database user has file-write privileges
Remediation
YesWiki has released version 4.6.4, which fixes the vulnerable code path. Upgrade all installations immediately:
- Back up your database and wiki files
- Update to YesWiki 4.6.4 or later
- Verify the update applied correctly by testing the Bazar form-import feature
For installations that cannot be patched immediately, consider the following temporary mitigations:
- Restrict network access to the YesWiki web interface
- Place the application behind a Web Application Firewall (WAF) with SQL injection detection rules
- Monitor database logs for anomalous
INSERTstatements originating from the web application user
Organizations using YesWiki should also audit user accounts for unauthorized changes after upgrading, as the vulnerability may have already been exploited. Review recent database activity for suspicious entries. For broader threat context, refer to our breach reports and security news sections.
Security Insight
This vulnerability follows a familiar pattern: a feature designed for user convenience (form imports) introduced a database layer flaw that turned a low-trust input path into a full data breach. The severity of CVE-2026-46670 - critical with a 9.8 CVSS score - underscores how privilege boundaries in open-source collaboration tools are often assumed rather than enforced. YesWiki’s quick patch window (pre-4.6.4 to 4.6.4) is commendable, but the architecture that allowed an unauthenticated INSERT injection should prompt a broader review of all user-facing database interactions in the codebase.
Further Reading
Never miss a critical vulnerability
Get real-time security alerts delivered to your preferred platform.
Am I Affected by CVE-2026-46670?
Pick an ecosystem, paste your installed version, and we'll compare it against the fixed version published on OSV.dev. Browser-only — nothing is sent to a server.
Heuristic comparison only. Always cross-check against the vendor advisory before making patching decisions.
Nuclei Detection Templates
Detection template available — your exposure is being scanned
The templates below are YAML signatures for the Nuclei scanner from ProjectDiscovery. They are not exploit code — they are detection rules that confirm whether a target is vulnerable. The presence of a Nuclei template means every bug bounty hunter, AppSec team, red team, and reconnaissance pipeline on the public internet is actively probing for this CVE.
Assume your exposed instances have already been touched. Patch immediately even if no exploitation is observed yet — fingerprinting precedes exploitation by days at most.
| Template | Source |
|---|---|
CVE-2026-46670.yaml | View YAML |
1 Nuclei template indexed for this CVE. Source: projectdiscovery/nuclei-templates.
Related Advisories
WordPress 6.8.x before 6.8.6, 6.9.x before 6.9.5, and 7.0.x before 7.0.2 does not properly sanitise the author__not_in parameter of WP_Query, which could allow SQL Injection when a plugin or theme pas...
Beauty Parlour Management System v1.1 was discovered to contain a SQL injection vulnerability via the aptnumber parameter in the /appointment-detail.php endpoint. This vulnerability allows attackers t...
Electric is a Postgres sync engine. From 1.1.12 to before 1.5.0, the order_by parameter in the ElectricSQL /v1/shape API is vulnerable to error-based SQL injection, allowing any authenticated user to ...
SQL Injection vulnerability in Apartment Visitors Management System Apartment Visitors Management System V1.1 within the username parameter of the login page (index.php). This allows an unauthenticate...