CVE-2024-25712
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.
Does this matter?
Lower severity and a low EPSS score (0.56%). Track it; it rarely justifies an emergency change on its own.
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 3.1
- 6.1 MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS
- 0.56% probability · 45th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-79
- Affected
- http-swagger project/http-swagger
- Source
- cve@mitre.org
References
- https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.htmlExploit, Third Party Advisory
- https://github.com/swaggo/http-swagger/releases/tag/v1.2.6Release Notes
- https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.htmlExploit, Third Party Advisory
- https://github.com/swaggo/http-swagger/releases/tag/v1.2.6Release Notes
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.