{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-25712","published":"2024-02-29T01:44:16.287000Z","last_modified":"2026-06-17T07:16:27.340000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:http-swagger_project:http-swagger:*:*:*:*:*:*:*:*","part":"a","vendor":"http-swagger_project","product":"http-swagger","version_end_excluding":"1.2.6"}],"cpes_truncated":false,"vendors":["http-swagger_project"],"products":["http-swagger_project/http-swagger"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00586,"percentile":0.42022,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-49w7-5r33-jm9m","ecosystem":"Go","name":"github.com/swaggo/http-swagger","purl":"pkg:golang/github.com/swaggo/http-swagger","ranges":[{"introduced":"0","fixed":"1.2.6"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-xg75-q3q5-cqmv","ecosystem":"Go","name":"github.com/swaggo/http-swagger","purl":"pkg:golang/github.com/swaggo/http-swagger","ranges":[{"introduced":"0","fixed":"1.2.6"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2022-0427","ecosystem":"Go","name":"github.com/swaggo/http-swagger","purl":"pkg:golang/github.com/swaggo/http-swagger","ranges":[{"introduced":"0","fixed":"1.2.6"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2024-25712/","html_en":"/en/cve/CVE-2024-25712/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-25712","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-25712"},"untrusted":{"vendor_name":"Http-swagger Project","product_name":"Http-swagger","desc_en":"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.","affected":[],"references":[{"url":"https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/swaggo/http-swagger/releases/tag/v1.2.6","tags":["Release Notes"]}]}}