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, allowing any website to write arbitrary files to a vulnerable goshs instance via a victim's browser. This is facilitated by an unconditional Access-Control-Allow-Origin: * header on the OPTIONS preflight handler, which bypasses network isolation protections. The issue has been addressed in goshs version 2.0.2.
AI Analysis
Technical Summary
The goshs 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. Additionally, the server responded to OPTIONS preflight requests with Access-Control-Allow-Origin: *, enabling cross-origin requests from any website. This combination allowed attackers to exploit victims' browsers to upload arbitrary files to goshs instances, potentially bypassing network isolation such as localhost or internal networks. The vulnerability is fixed in version 2.0.2.
Potential Impact
Exploitation allows an attacker to write arbitrary files to a goshs server instance through a victim's browser, potentially leading to unauthorized file uploads and modification. This can bypass network isolation controls, increasing the risk of unauthorized access or manipulation of internal resources. The CVSS score of 6.5 reflects a medium severity with high impact on integrity but no direct confidentiality or availability impact.
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 unauthorized file uploads. No additional mitigations are specified or required beyond applying this official fix.
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, allowing any website to write arbitrary files to a vulnerable goshs instance via a victim's browser. This is facilitated by an unconditional Access-Control-Allow-Origin: * header on the OPTIONS preflight handler, which bypasses network isolation protections. The issue has been addressed in goshs version 2.0.2.
CVSS v3.1
Score 6.5medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The goshs 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. Additionally, the server responded to OPTIONS preflight requests with Access-Control-Allow-Origin: *, enabling cross-origin requests from any website. This combination allowed attackers to exploit victims' browsers to upload arbitrary files to goshs instances, potentially bypassing network isolation such as localhost or internal networks. The vulnerability is fixed in version 2.0.2.
Potential Impact
Exploitation allows an attacker to write arbitrary files to a goshs server instance through a victim's browser, potentially leading to unauthorized file uploads and modification. This can bypass network isolation controls, increasing the risk of unauthorized access or manipulation of internal resources. The CVSS score of 6.5 reflects a medium severity with high impact on integrity but no direct confidentiality or availability impact.
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 unauthorized file uploads. No additional mitigations are specified or required beyond applying this official fix.
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/12/2026, 6:24:44 AM
Last updated: 6/18/2026, 4:03:33 PM
Views: 78
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.