All CVEs / Http-swagger Project
CVE-2024-25712Http-swagger Project Http-swagger
Medium 6.1 No auth needed
Follow: this CVE · Http-swagger Project · Http-swagger Project Http-swagger We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Http-swagger.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| http-swagger_project | http-swagger | < 1.2.6 |
Official sources
References
Links published by the sources. Open them with care.
- cosmosofcyberspace.github.io Exploit Third Party Advisory
- github.com Release Notes