CVE-2026-43982: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in xyproto algernon
Algernon is a small self-contained pure-Go web server. Prior to 1.17.6, uploadedFileSaveIn() in lua/upload/upload.go uses filepath.Join() with the caller-supplied directory but performs no boundary check after joining. A directory of ../../../tmp resolves cleanly to /tmp, outside the web root. This vulnerability is fixed in 1.17.6.
AI Analysis
Technical Summary
The vulnerability in xyproto algernon (before version 1.17.6) involves improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the uploadedFileSaveIn() function in lua/upload/upload.go joins a user-supplied directory path without validating that the resulting path remains within the intended web root. This allows directory traversal attacks where an attacker can write files outside the web root, potentially leading to unauthorized file writes in arbitrary locations such as /tmp. The vulnerability has a CVSS 4.0 score of 8.7, indicating high severity, and was fixed in version 1.17.6.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write files outside the designated web root directory by supplying crafted directory paths. This can lead to unauthorized file creation or overwriting in arbitrary filesystem locations, which may facilitate further attacks or system compromise. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade xyproto algernon to version 1.17.6 or later, where this path traversal vulnerability has been fixed. Since the vendor has released a fixed version, applying this official patch is the recommended remediation. Patch status is confirmed by the vendor advisory indicating the fix in version 1.17.6.
CVE-2026-43982: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in xyproto algernon
Description
Algernon is a small self-contained pure-Go web server. Prior to 1.17.6, uploadedFileSaveIn() in lua/upload/upload.go uses filepath.Join() with the caller-supplied directory but performs no boundary check after joining. A directory of ../../../tmp resolves cleanly to /tmp, outside the web root. This vulnerability is fixed in 1.17.6.
CVSS v4.0
Score 8.7high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in xyproto algernon (before version 1.17.6) involves improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the uploadedFileSaveIn() function in lua/upload/upload.go joins a user-supplied directory path without validating that the resulting path remains within the intended web root. This allows directory traversal attacks where an attacker can write files outside the web root, potentially leading to unauthorized file writes in arbitrary locations such as /tmp. The vulnerability has a CVSS 4.0 score of 8.7, indicating high severity, and was fixed in version 1.17.6.
Potential Impact
Successful exploitation allows an unauthenticated attacker to write files outside the designated web root directory by supplying crafted directory paths. This can lead to unauthorized file creation or overwriting in arbitrary filesystem locations, which may facilitate further attacks or system compromise. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade xyproto algernon to version 1.17.6 or later, where this path traversal vulnerability has been fixed. Since the vendor has released a fixed version, applying this official patch is the recommended remediation. Patch status is confirmed by the vendor advisory indicating the fix in version 1.17.6.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-04T20:24:31.916Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a15d22e891d628fdc600889
Added to database: 5/26/2026, 5:02:38 PM
Last enriched: 5/26/2026, 5:33:03 PM
Last updated: 5/26/2026, 9:50:19 PM
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.