{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-25712","id":"CVE-2024-25712","title":"http-swagger XSS via PUT requests","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 ","descriptionLong":"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":"2024-02-11T00:00:00.000Z","updated":"2026-10-28T02:30:35.740760449Z","reserved":"2024-02-11T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"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"],"advisory":"GHSA-49w7-5r33-jm9m"}],"cwes":["CWE-79","CWE-400","CWE-755"],"aliases":["CVE-2022-24863","GHSA-49w7-5r33-jm9m","GHSA-xg75-q3q5-cqmv","GO-2022-0427"],"references":[{"url":"https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/swaggo/http-swagger/releases/tag/v1.2.6","tags":["x_transferred","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25712.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25712","tags":["advisory"]},{"url":"https://github.com/swaggo/http-swagger/pull/62","tags":["web","fix"]},{"url":"https://github.com/swaggo/http-swagger/commit/b7d83e8fba85a7a51aa7e45e8244b4173f15049e","tags":["web"]},{"url":"https://github.com/swaggo/http-swagger","tags":["package"]},{"url":"https://github.com/swaggo/http-swagger/security/advisories/GHSA-xg75-q3q5-cqmv","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24863","tags":["advisory"]},{"url":"https://github.com/swaggo/http-swagger/issues/61","tags":["report"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00561,"epssPercentile":0.47418,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-25712","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25712","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-25712","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-49w7-5r33-jm9m","ok":true,"note":"GHSA-49w7-5r33-jm9m"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xg75-q3q5-cqmv","ok":true,"note":"GHSA-xg75-q3q5-cqmv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-25712","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}