CVE-2026-42091
Full vulnerability record from the local CVENow database.
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.
Severity
MEDIUM
CVSS score
6.5
(v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-05-04 18:16:31.210000
Last modified
2026-10-26 19:10:00.163000
View original CVE JSON
{
"id": "CVE-2026-42091",
"sourceIdentifier": "[email protected]",
"published": "2026-05-04T18:16:31.210",
"lastModified": "2026-10-26T19:10:00.163",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "goshs es un SimpleHTTPServer escrito en Go. Antes de la versión 2.0.2, el gestor de subida PUT (httpserver/updown.go) carece de la validación de token CSRF que se añadió al gestor de subida POST durante la corrección de CVE-2026-40883. Combinado con el Access-Control-Allow-Origin: * incondicional en el gestor de pre-vuelo OPTIONS (httpserver/server.go), cualquier sitio web puede escribir archivos arbitrarios en una instancia de goshs a través del navegador de la víctima - eludiendo el aislamiento de red (p. ej., localhost, red interna). Este problema ha sido parcheado en la versión 2.0.2."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "patrickhener",
"product": "goshs",
"versions": [
{
"version": "< 2.0.2",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.8,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-05-05T13:07:28.351435Z",
"id": "CVE-2026-42091",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-352"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*",
"versionEndExcluding": "2.0.2",
"matchCriteriaId": "D83E7458-F091-489A-9C7A-2189CF452680"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32",
"source": "[email protected]",
"tags": [
"Patch"
]
},
{
"url": "https://github.com/patrickhener/goshs/releases/tag/v2.0.2",
"source": "[email protected]",
"tags": [
"Product",
"Release Notes"
]
},
{
"url": "https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm",
"source": "[email protected]",
"tags": [
"Exploit",
"Vendor Advisory"
]
},
{
"url": "https://github.com/patrickhener/goshs/security/advisories/GHSA-rhf7-wvw3-vjvm",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"tags": [
"Exploit",
"Vendor Advisory"
]
}
]
}