GHSA-35f3-pg38-486f: YesWiki Vulnerable to Reflected XSS via Unescaped Archived-Revision `time` Parameter in `handlers/page/show.php`
YesWiki versions from 4.1.0 up to but not including 4.6.6 are vulnerable to a reflected cross-site scripting (XSS) issue via the unescaped 'time' GET parameter in the archived revision view handler (handlers/page/show.php). The vulnerability occurs because the 'time' parameter is reflected into a hidden HTML input field without proper escaping, allowing an attacker to inject arbitrary JavaScript. Exploitation requires the victim to have both read and write access to the target page, although some default configurations may allow anonymous exploitation on public editable pages. The issue arises due to MySQL's coercion of malformed DATETIME strings, enabling the crafted payload to match an archived revision and be reflected unescaped in the response.
AI Analysis
Technical Summary
YesWiki's archived revision view reflects the 'time' GET parameter into a hidden input field in handlers/page/show.php without escaping, leading to a reflected XSS vulnerability. The 'time' parameter is used to load a specific archived revision by matching a DATETIME value in the database. MySQL's coercion of malformed DATETIME strings allows an attacker to append HTML/JavaScript to a valid timestamp, which still matches an archived revision row. The vulnerable code path is only triggered if the victim has both read and write access to the page, as the edit form for archived revisions is rendered only under these conditions. The vulnerability was validated on YesWiki doryphore 4.6.5. The reflected payload executes in the victim's browser when the crafted URL is visited, demonstrating improper neutralization of input during web page generation (CWE-80).
Potential Impact
An attacker can execute arbitrary JavaScript in the context of the victim's browser by injecting a crafted payload into the 'time' parameter. This reflected XSS can lead to session hijacking, credential theft, or other malicious actions within the victim's privileges on the YesWiki instance. Exploitation requires the victim to have read and write access to the target page, which may be available to authenticated users or, in some default configurations, even anonymous users on public editable pages.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict write access to trusted users only and avoid configurations that allow anonymous editing of public pages. Review and sanitize user input in the 'time' parameter before rendering it in HTML contexts, ideally applying proper escaping such as htmlspecialchars() to prevent XSS. Monitor vendor channels for updates and apply official patches once released.
GHSA-35f3-pg38-486f: YesWiki Vulnerable to Reflected XSS via Unescaped Archived-Revision `time` Parameter in `handlers/page/show.php`
Description
YesWiki versions from 4.1.0 up to but not including 4.6.6 are vulnerable to a reflected cross-site scripting (XSS) issue via the unescaped 'time' GET parameter in the archived revision view handler (handlers/page/show.php). The vulnerability occurs because the 'time' parameter is reflected into a hidden HTML input field without proper escaping, allowing an attacker to inject arbitrary JavaScript. Exploitation requires the victim to have both read and write access to the target page, although some default configurations may allow anonymous exploitation on public editable pages. The issue arises due to MySQL's coercion of malformed DATETIME strings, enabling the crafted payload to match an archived revision and be reflected unescaped in the response.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
YesWiki's archived revision view reflects the 'time' GET parameter into a hidden input field in handlers/page/show.php without escaping, leading to a reflected XSS vulnerability. The 'time' parameter is used to load a specific archived revision by matching a DATETIME value in the database. MySQL's coercion of malformed DATETIME strings allows an attacker to append HTML/JavaScript to a valid timestamp, which still matches an archived revision row. The vulnerable code path is only triggered if the victim has both read and write access to the page, as the edit form for archived revisions is rendered only under these conditions. The vulnerability was validated on YesWiki doryphore 4.6.5. The reflected payload executes in the victim's browser when the crafted URL is visited, demonstrating improper neutralization of input during web page generation (CWE-80).
Potential Impact
An attacker can execute arbitrary JavaScript in the context of the victim's browser by injecting a crafted payload into the 'time' parameter. This reflected XSS can lead to session hijacking, credential theft, or other malicious actions within the victim's privileges on the YesWiki instance. Exploitation requires the victim to have read and write access to the target page, which may be available to authenticated users or, in some default configurations, even anonymous users on public editable pages.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict write access to trusted users only and avoid configurations that allow anonymous editing of public pages. Review and sanitize user input in the 'time' parameter before rendering it in HTML contexts, ideally applying proper escaping such as htmlspecialchars() to prevent XSS. Monitor vendor channels for updates and apply official patches once released.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-35f3-pg38-486f
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-52773"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a50ba7368715ace43580266
Added to database: 07/10/2026, 09:25:07 UTC
Last enriched: 07/10/2026, 09:54:59 UTC
Last updated: 07/10/2026, 09:54:59 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.