Cross-site Request Forgery (CSRF) Affecting goshs.de/goshs/v2/httpserver package, versions <2.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOSHSDEGOSHSV2HTTPSERVER-16415115
  • published6 May 2026
  • disclosed23 Apr 2026
  • creditUnknown

Introduced: 23 Apr 2026

CVE-2026-42091  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade goshs.de/goshs/v2/httpserver to version 2.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the put function. An attacker can overwrite or create arbitrary files in the webroot by enticing a user to visit a malicious website, which then issues crafted PUT requests through the victim's browser. This is possible due to missing CSRF validation and permissive CORS headers that allow cross-origin requests.

CVSS Base Scores

version 4.0
version 3.1