CVE-2026-42091: CWE-352: Cross-Site Request Forgery (CSRF) in patrickhener goshs
A Cross-Site Request Forgery (CSRF) vulnerability exists in goshs versions prior to 2. 0. 2. The PUT upload handler lacks CSRF token validation, unlike the POST handler which was fixed earlier. Additionally, the server responds to OPTIONS preflight requests with Access-Control-Allow-Origin: * unconditionally. This combination allows any website to write arbitrary files to a vulnerable goshs instance via a victim's browser, potentially bypassing network isolation. The issue has been patched in version 2. 0. 2.
AI Analysis
Technical Summary
goshs, a SimpleHTTPServer written in Go, had a CSRF vulnerability (CWE-352) in its PUT upload handler before version 2.0.2. While the POST upload handler was protected by CSRF token validation after a previous fix (CVE-2026-40883), the PUT handler did not receive the same protection. The server also unconditionally sets Access-Control-Allow-Origin: * on OPTIONS preflight requests, enabling cross-origin requests. This combination allows an attacker-controlled website to cause a victim's browser to upload arbitrary files to the goshs server, potentially bypassing network isolation controls such as localhost or internal network boundaries. The vulnerability is fixed in goshs version 2.0.2.
Potential Impact
An attacker can exploit this vulnerability to write arbitrary files to a goshs server instance through a victim's browser, potentially leading to unauthorized file uploads and modification within the server's accessible environment. This could bypass network isolation protections, increasing the risk of unauthorized access or manipulation of internal resources. There is no indication of confidentiality or availability impact, but integrity is affected. No known exploits in the wild have been reported.
Mitigation Recommendations
This vulnerability is fixed in goshs version 2.0.2. Users should upgrade to version 2.0.2 or later to ensure the PUT upload handler includes CSRF token validation and to prevent arbitrary file uploads via CSRF attacks. Since this is not a cloud service, remediation depends on applying the official patch. Patch status is confirmed by the vendor's versioning information.
CVE-2026-42091: CWE-352: Cross-Site Request Forgery (CSRF) in patrickhener goshs
Description
A Cross-Site Request Forgery (CSRF) vulnerability exists in goshs versions prior to 2. 0. 2. The PUT upload handler lacks CSRF token validation, unlike the POST handler which was fixed earlier. Additionally, the server responds to OPTIONS preflight requests with Access-Control-Allow-Origin: * unconditionally. This combination allows any website to write arbitrary files to a vulnerable goshs instance via a victim's browser, potentially bypassing network isolation. The issue has been patched in version 2. 0. 2.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
goshs, a SimpleHTTPServer written in Go, had a CSRF vulnerability (CWE-352) in its PUT upload handler before version 2.0.2. While the POST upload handler was protected by CSRF token validation after a previous fix (CVE-2026-40883), the PUT handler did not receive the same protection. The server also unconditionally sets Access-Control-Allow-Origin: * on OPTIONS preflight requests, enabling cross-origin requests. This combination allows an attacker-controlled website to cause a victim's browser to upload arbitrary files to the goshs server, potentially bypassing network isolation controls such as localhost or internal network boundaries. The vulnerability is fixed in goshs version 2.0.2.
Potential Impact
An attacker can exploit this vulnerability to write arbitrary files to a goshs server instance through a victim's browser, potentially leading to unauthorized file uploads and modification within the server's accessible environment. This could bypass network isolation protections, increasing the risk of unauthorized access or manipulation of internal resources. There is no indication of confidentiality or availability impact, but integrity is affected. No known exploits in the wild have been reported.
Mitigation Recommendations
This vulnerability is fixed in goshs version 2.0.2. Users should upgrade to version 2.0.2 or later to ensure the PUT upload handler includes CSRF token validation and to prevent arbitrary file uploads via CSRF attacks. Since this is not a cloud service, remediation depends on applying the official patch. Patch status is confirmed by the vendor's versioning information.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-23T19:17:30.566Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f8dc9fcbff5d86103c0114
Added to database: 5/4/2026, 5:51:27 PM
Last enriched: 5/4/2026, 6:07:04 PM
Last updated: 5/4/2026, 7:47:37 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.