Go Vulnerability Database
GO-2022-0427
Unprotected file upload in github.com/swaggo/http-swagger
Details
The httpSwagger package's HTTP handler provides WebDAV read/write access to an in-memory filesystem. An attacker can exploit this to cause memory exhaustion by uploading many files, XSS attacks by uploading malicious files, or other unexpected behaviors.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/swaggo/http-swagger | All versions before 1.2.6 (fixed in 1.2.6) |