CVE-2024-25712
MEDIUM 6.1CVSS 3.1http-swagger XSS via PUT requests
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.
- Published
- 29 Feb 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-400CWE-755CWE-79
- Also known as
- CVE-2022-24863GHSA-49w7-5r33-jm9mGHSA-xg75-q3q5-cqmvGO-2022-0427
- Sources
- NVDJSONOSV GHSA-49w7-5r33-jm9mJSONOSV GHSA-xg75-q3q5-cqmvJSONOSV GO-2022-0427JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | http-swagger_project | http-swaggercpe:2.3:a:http-swagger_project:http-swagger:*:*:*:*:*:*:*:* |
< 1.2.6 | 1.2.6 |
| OSV | Go | github.com/swaggo/http-swagger | < 1.2.6 | 1.2.6 |
References
- https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html · Exploit, Third Party Advisory, WEB
- https://github.com/swaggo/http-swagger/releases/tag/v1.2.6 · Release Notes, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-25712 · ADVISORY
- https://github.com/swaggo/http-swagger/pull/62 · WEB, FIX
- https://github.com/swaggo/http-swagger/commit/b7d83e8fba85a7a51aa7e45e8244b4173f15049e · WEB
- https://github.com/swaggo/http-swagger · PACKAGE
- https://github.com/swaggo/http-swagger/security/advisories/GHSA-xg75-q3q5-cqmv · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-24863 · ADVISORY
- https://github.com/swaggo/http-swagger/issues/61 · REPORT
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 29 Feb 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Apr 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Feb 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Feb 2024)