Skip to content

CVE-2022-24863 Denial of service in http-swagger

MediumCVSS 6.1 EPSS 2.4%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

http-swagger before 1.2.6 allows XSS via PUT requests, because a file that has been uploaded (via httpSwagger.WrapHandler and *webdav.memFile) can subsequently be accessed via a GET request. NOTE: this is independently fixable with respect to CVE-2022-24863, because (if a solution continued to allow PUT requests) large files could have been blocked without blocking JavaScript, or JavaScript could have been blocked without blocking large files.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
http-swagger project http-swagger < 1.2.6 1.2.6 Fixed
swaggo github.com/swaggo/http-swagger(Go) < 1.2.6 1.2.6 Fixed
swaggo github.com/swaggo/http-swagger = < 1.2.6 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
swaggo github.com/swaggo/http-swagger(Go) < 1.2.6 1.2.6
swaggo github.com/swaggo/http-swagger = < 1.2.6 No fix listed
http-swagger project http-swagger < 1.2.6 1.2.6

References