Skip to main content
← All vulnerabilities
CVE-2024-25712GHSA-XG75-Q3Q5-CQMVGHSA-49W7-5R33-JM9MGO-2022-0427

http-swagger before 1.2.6 allows XSS via PUT requests, because a file that has been uploaded (via httpSwagger.WrapHandler and *webdav.memFil

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.2.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • github.com/swaggo/http-swaggerGo

    fixed in 1.2.6

References 2

cosmosofcyberspace.github.io

GitHub · swaggo/http-swagger