Live threats

All CVEs / Http-swagger Project

CVE-2024-25712Http-swagger Project Http-swagger

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.6%
probability of exploitation in 30 days · percentile 42
Auth required
No
Published
Feb 29, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Http-swagger.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/swaggo/http-swagger < 1.2.6 1.2.6 go get github.com/swaggo/http-swagger@v1.2.6
Go github.com/swaggo/http-swagger < 1.2.6 1.2.6 go get github.com/swaggo/http-swagger@v1.2.6
Go github.com/swaggo/http-swagger < 1.2.6 1.2.6 go get github.com/swaggo/http-swagger@v1.2.6

Per OSV / GitHub Advisories (GHSA-49w7-5r33-jm9m, GHSA-xg75-q3q5-cqmv, GO-2022-0427). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
http-swagger_projecthttp-swagger< 1.2.6

Official sources

References

Links published by the sources. Open them with care.