Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-42091— goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS

Quick assessment

Affected
patrickhener goshs
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

goshs是Patrick Hener个人开发者的一个用Go编写的简单HTTP Server。 goshs 2.0.2之前版本存在跨站请求伪造漏洞,该漏洞源于PUT上传处理程序缺少CSRF令牌验证,结合OPTIONS预检处理程序的无条件跨域资源共享标头,可能导致任意网站通过受害者浏览器写入任意文件。

CVSS 6.5 · Medium EPSS 0.23% · P12

Affected Version Matrix 1

VendorProduct Version RangeStatus
patrickhener goshs < 2.0.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-42091

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
goshs has Cross-Origin Arbitrary File Write via Missing CSRF on PUT and Wildcard CORS
Source: CVE Program / CVE List V5
Vulnerability Description
goshs is a SimpleHTTPServer written in Go. Prior to version 2.0.2, the PUT upload handler (httpserver/updown.go) lacks the CSRF token validation that was added to the POST upload handler during the CVE-2026-40883 fix. Combined with the unconditional Access-Control-Allow-Origin: * on the OPTIONS preflight handler (httpserver/server.go), any website can write arbitrary files to a goshs instance through the victim's browser — bypassing network isolation (e.g. localhost, internal network). This issue has been patched in version 2.0.2.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
跨站请求伪造(CSRF)
Source: CVE Program / CVE List V5
Vulnerability Title
goshs 跨站请求伪造漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
goshs是Patrick Hener个人开发者的一个用Go编写的简单HTTP Server。 goshs 2.0.2之前版本存在跨站请求伪造漏洞,该漏洞源于PUT上传处理程序缺少CSRF令牌验证,结合OPTIONS预检处理程序的无条件跨域资源共享标头,可能导致任意网站通过受害者浏览器写入任意文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
patrickhener goshs < 2.0.2 -

II. Public POCs for CVE-2026-42091

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-42091

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-42091 (2)

Vendor Advisories for CVE-2026-42091 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-42091

No comments yet


Leave a comment