Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 94%

CVE-2026-42091: CWE-352: Cross-Site Request Forgery (CSRF) in patrickhener goshs

0
Medium
VulnerabilityCVE-2026-42091cvecve-2026-42091cwe-352
Published: Mon May 04 2026 (05/04/2026, 17:24:47 UTC)
Source: CVE Database V5
Vendor/Project: patrickhener
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Affected software

Affected versions
<2.0.2

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/12/2026, 06:24:44 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses