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

Source: https://junglewise.ai/threats/cve-2026-116828-yeswiki-before-4-7-0-contains-a-sql-injection-vulnerability-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-27. Updated: 2026-10-27  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/technologies/yeswiki). Vendors: [YesWiki](https://junglewise.ai/threats/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

- [https://github.com/YesWiki/yeswiki/security/advisories/GHSA-w7cp-76pj-w4m5](https://github.com/YesWiki/yeswiki/security/advisories/GHSA-w7cp-76pj-w4m5)
- [https://www.vulncheck.com/advisories/yeswiki-before-4.7.0-sql-injection-via-despam-php-interval-operand](https://www.vulncheck.com/advisories/yeswiki-before-4.7.0-sql-injection-via-despam-php-interval-operand)

## Related threats

- [YesWiki server-side request forgery in Bazar CSV import](https://junglewise.ai/threats/cve-2026-116827-yeswiki-before-4-7-0-contains-a-server-side-request-forgery)
- [YesWiki server-side request forgery in DuplicationManager](https://junglewise.ai/threats/cve-2026-116826-yeswiki-before-4-7-0-contains-a-server-side-request-forgery)
- [YesWiki HTTP Signature replay protection missing in ActivityPub inbox](https://junglewise.ai/threats/cve-2026-116825-yeswiki-from-4-6-2-before-4-7-0-lacks-replay-protection-in)
- [YesWiki stored cross-site scripting in referrers_sites handler](https://junglewise.ai/threats/cve-2026-116824-yeswiki-before-4-7-0-contains-a-stored-cross-site-scripting)
- [YesWiki reflected cross-site scripting in Bazar field rendering](https://junglewise.ai/threats/cve-2026-116823-yeswiki-before-4-7-0-contains-a-reflected-cross-site-scripting)
