CVE-2026-116828: YesWiki SQL injection in despam.php INTERVAL operand

CVE-2026-116828 · Severity: medium · CVSS 4.9 · Published 2026-10-27

YesWiki is a wiki and website creation tool used to build collaborative web platforms. The despam action, used by administrators to manage spam, contains a SQL injection flaw in how it processes time parameters. An authenticated administrator can inject malicious SQL commands to read sensitive database contents, including user password hashes.

Technologies: YesWiki. Vendors: YesWiki.

Quick answers

Is CVE-2026-116828 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-116828 being exploited in the wild.
How severe is CVE-2026-116828?
Medium severity, with a CVSS score of 4.9, published 27 October 2026.
Which products and versions are affected?
YesWiki before 4.7.0.
Is there a fix for CVE-2026-116828?
Yes: fixed in 4.7.0. Until then: Cast the 'from' parameter to an integer using intval() rather than relying on escaping, as confirmed in the advisory remediation guidance. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-116828 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-116828?
Check whether you run YesWiki at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 4.7.0

Cast the 'from' parameter to an integer using intval() rather than relying on escaping, as confirmed in the advisory remediation guidance.

Technical details

The vulnerability exists in despam.php at line 55, where user-supplied input from the 'from' POST parameter is escaped using mysqli_real_escape_string() but then inserted unquoted into a numeric SQL INTERVAL operand. Since escaping only neutralizes quotes and not parentheses or keywords, an attacker can inject SQL such as "744 hour) AND (ASCII(SUBSTRING((select password from yeswiki_users limit 1),1,1))>57) --" to perform blind SQL injection. Exploitation requires administrator privileges and proceeds via the despam form typically accessed from wiki page content.

Affected products

  • YesWiki YesWiki before 4.7.0

Timeline

  • 2026-10-12: advisory: GitHub Security Advisory GHSA-w7cp-76pj-w4m5 published
  • 2026-10-27: disclosed: CVE-2026-116828 published on NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.