{"id":"CVE-2024-25712","published":"2024-02-11T00:00:00Z","modified":"2025-06-16T18:20:18Z","title":"http-swagger before 1.2.6 allows XSS via PUT requests, because a file that has been uploaded (via…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00586,"percentile":0.41965,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html","tags":[]},{"url":"https://github.com/swaggo/http-swagger/releases/tag/v1.2.6","tags":[]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":8.39},{"name":"CVSS severity","points":4.27}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-29T20:18:05.878763Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/swaggo/http-swagger","vulnerableRanges":["<1.2.6"],"patched":["1.2.6"],"from":["GHSA-49w7-5r33-jm9m","GO-2022-0427"],"provenance":"source"}],"summary":{"text":"The http-swagger package before version 1.2.6 contains a cross-site scripting flaw in how it handles files uploaded via PUT requests through httpSwagger.WrapHandler and *webdav.memFile, which can later be served back to users. An attacker who can get a file uploaded (over the network, with user interaction required) can have that file accessed via a GET request, where its contents are rendered as script in the victim's browser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:33Z"},"euvd":{"id":"EUVD-2024-0505","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-swaggo-http-swagger-cve-2022-24863","parents":[{"from":"CVE-2022-24863","to":"CVE-2024-25712","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-xg75-q3q5-cqmv","via":"reference","url":"https://github.com/swaggo/http-swagger/security/advisories/GHSA-xg75-q3q5-cqmv"}]}]}}