Skip to main content
Vulnerability Database/CVE-2026-114377

CVE-2026-114377: wiki-go Path Traversal Vulnerability

CVE-2026-114377 is a path traversal flaw in wiki-go by leomoon-studios that affects the Comment Deletion Handler. Attackers can exploit this remotely to access unauthorized files. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114377 Overview

CVE-2026-114377 is a path traversal vulnerability [CWE-22] in leomoon-studios wiki-go through version 1.9.1. The flaw resides in the DeleteComment function within internal/comments/comments.go, part of the Comment Deletion Handler component. An authenticated remote attacker can manipulate the documentPath argument to escape the intended comment storage directory and delete files outside it. The maintainers released version 1.9.2 with commit 224ef2a11facddef6b3a3c1f0a69156d1e574a33 to enforce a storage boundary. A public exploit disclosure exists for this issue.

Critical Impact

Authenticated attackers can traverse the filesystem through the documentPath parameter to delete files outside the comments directory, affecting integrity and availability of the wiki-go deployment.

Affected Products

  • leomoon-studios wiki-go versions up to and including 1.9.1
  • Component: Comment Deletion Handler (internal/comments/comments.go)
  • Fixed in: wiki-go version 1.9.2

Discovery Timeline

  • 2026-10-21 - CVE-2026-114377 published to the National Vulnerability Database (NVD)
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114377

Vulnerability Analysis

The vulnerability stems from insufficient validation of the documentPath input passed to the DeleteComment function. The handler uses the attacker-controlled path to locate comment data on disk without constraining it to the designated comments directory. By injecting traversal sequences such as ../, an authenticated requester can navigate outside the intended root and target arbitrary files that the wiki-go process can access. Successful exploitation leads to unauthorized file deletion, which can corrupt wiki content, remove configuration, or disrupt service availability.

This class of flaw [CWE-22] is well understood, and the public disclosure increases the likelihood of opportunistic probing against exposed instances. The EPSS probability is 0.399% with a percentile of 32.9, reflecting a modest near-term exploitation forecast.

Root Cause

The root cause is missing enforcement of a storage boundary when resolving comment paths. The pre-patch code resolved documentPath relative to the application's working context without validating that the final resolved path remained inside the configured comments directory under cfg.Wiki.RootDir. The fix passes an explicit comments root (filepath.Join(cfg.Wiki.RootDir, "comments")) to the comment accessors so operations are scoped to that directory.

Attack Vector

Exploitation requires network access to the wiki-go instance and authenticated privileges sufficient to invoke the comment deletion handler. The attacker submits a request where documentPath contains directory traversal sequences, causing the server to resolve a path outside the comments store and delete the targeted file. No user interaction is required beyond the attacker's authenticated request.

go
// Patch excerpt from internal/handlers/page.go
// security: enforce comment storage boundary

// Only load comments if they're allowed
if commentsAllowed {
-    commentsList, _ = comments.GetComments(path)
+    commentsList, _ = comments.GetComments(filepath.Join(cfg.Wiki.RootDir, "comments"), path)

    // Process comments (render markdown, format timestamps)
    for i := range commentsList {

Source: GitHub Commit 224ef2a. The fix threads an explicit comments root through accessors so path resolution cannot escape the comments directory.

Detection Methods for CVE-2026-114377

Indicators of Compromise

  • HTTP requests to comment deletion endpoints containing ../, ..\\, or URL-encoded variants (%2e%2e%2f) in the documentPath parameter.
  • Unexpected deletion of files outside the comments subdirectory of cfg.Wiki.RootDir.
  • Application error logs referencing failed or successful file operations on paths that resolve above the comments directory.

Detection Strategies

  • Inspect wiki-go access logs for requests to comment deletion routes with suspicious documentPath values containing traversal sequences.
  • Enable filesystem auditing (for example, auditd on Linux) on the wiki-go data directory to flag deletions outside the comments folder.
  • Correlate authenticated session activity with file deletion events to identify abuse by low-trust accounts.

Monitoring Recommendations

  • Alert on any file delete operation performed by the wiki-go service account targeting paths outside the configured comments directory.
  • Track the running wiki-go version across deployments and alert when instances remain on 1.9.1 or earlier.
  • Monitor outbound disclosure channels and GitHub advisory GHSA-g86r-58wp-4v86 for updated exploit details.

How to Mitigate CVE-2026-114377

Immediate Actions Required

  • Upgrade wiki-go to version 1.9.2 or later, which contains patch commit 224ef2a11facddef6b3a3c1f0a69156d1e574a33.
  • Review authentication requirements and remove unneeded accounts that can invoke comment deletion.
  • Audit the wiki data directory for unexpected file deletions and restore from backup where needed.

Patch Information

The fix is available in GitHub Release v1.9.2. The patch, documented in GitHub Commit 224ef2a, enforces a comment storage boundary by scoping path resolution to filepath.Join(cfg.Wiki.RootDir, "comments"). See the GitHub Security Advisory GHSA-g86r-58wp-4v86 for full remediation guidance.

Workarounds

  • Restrict network access to the wiki-go instance to trusted users until the upgrade is applied.
  • Run the wiki-go service under a least-privilege account that cannot delete files outside the wiki data directory.
  • Place a reverse proxy rule that rejects requests to comment deletion endpoints when documentPath contains .. or encoded traversal sequences.
bash
# Example upgrade workflow for wiki-go deployments
git fetch --tags
git checkout v1.9.2
# Rebuild and restart the service
go build -o wiki-go ./...
systemctl restart wiki-go

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.