http-swagger before 1.2.6 allows XSS via PUT requests, because a file that has been…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | github.com/swaggo/http-swagger (Go) | before 1.2.6 | 1.2.6 | Patch available | GHSA-49w7-5r33-jm9m |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- github.com/swaggo/http-swagger (Go) Vendor— Affected before 1.2.6 Fixed in 1.2.6 Patch available GHSA-49w7-5r33-jm9m
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:http-swagger_project:http-swagger:*:*:*:*:*:*:*:* | before 1.2.6 | Vulnerable | Http-swagger Project |
- cpe:2.3:a:http-swagger_project:http-swagger:*:*:*:*:*:*:*:* Versions before 1.2.6 Vulnerable ·Http-swagger Project
Remediation
- Fix · GHSA-49w7-5r33-jm9m github.com/swaggo/http-swagger (Go) Fixed in 1.2.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-25712
- 2026-10-03 Alias added: GHSA-49w7-5r33-jm9m
References
More Http-swagger Project Http-swagger vulnerabilities
- TI-2022-08674 Denial of service in http-swagger CVSS 3.1HIGH 7.5
Sources
- CVE-2024-25712 · CVE Program
- CVE-2024-25712 · NVD
- FIRST EPSS
- GHSA-49w7-5r33-jm9m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences