logo

CVE-2024-25712 github.com/swaggo/http-swagger

Package

Manager: go
Name: github.com/swaggo/http-swagger
Vulnerable Version: >=0 <1.2.6

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00237 pctl0.46682

Details

http-swagger XSS via PUT requests 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.

Metadata

Created: 2024-02-29T03:33:18Z
Modified: 2025-01-16T19:57:08Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-49w7-5r33-jm9m/GHSA-49w7-5r33-jm9m.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-49w7-5r33-jm9m
Finding: F425
Auto approve: 1