{"cve":"CVE-2024-25712","nvd":{"published":"2024-02-29T01:44:16.287","modified":"2026-06-17T07:16:27.340","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html","https://github.com/swaggo/http-swagger/releases/tag/v1.2.6","https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html","https://github.com/swaggo/http-swagger/releases/tag/v1.2.6"],"products":["http-swagger_project:http-swagger"],"source":"nvd","synced_at":"2026-10-19T21:46:54.846886191+00:00"},"epss":{"cve":"CVE-2024-25712","score":0.00561,"percentile":0.46651,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-49w7-5r33-jm9m","url":"https://osv.dev/vulnerability/GHSA-49w7-5r33-jm9m","summary":"http-swagger XSS via PUT requests","modified":"2025-01-16T19:57:08Z","packages":[{"ecosystem":"Go","name":"github.com/swaggo/http-swagger","purl":"pkg:golang/github.com/swaggo/http-swagger","ranges":["<1.2.6"],"fixed":["1.2.6"]}]},{"id":"GHSA-xg75-q3q5-cqmv","url":"https://osv.dev/vulnerability/GHSA-xg75-q3q5-cqmv","summary":"Denial of Service in http-swagger","modified":"2024-03-04T18:35:26Z","packages":[{"ecosystem":"Go","name":"github.com/swaggo/http-swagger","purl":"pkg:golang/github.com/swaggo/http-swagger","ranges":["<1.2.6"],"fixed":["1.2.6"]}]},{"id":"GO-2022-0427","url":"https://osv.dev/vulnerability/GO-2022-0427","summary":"Unprotected file upload in github.com/swaggo/http-swagger","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/swaggo/http-swagger","purl":"pkg:golang/github.com/swaggo/http-swagger","ranges":["<1.2.6"],"fixed":["1.2.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}