Security mailing lists by PureSourceCode

CVE-2024-25712

MEDIUM 6.1CVSS 3.1

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.

Published
29 Feb 2024
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-400CWE-755CWE-79
Also known as
CVE-2022-24863GHSA-49w7-5r33-jm9mGHSA-xg75-q3q5-cqmvGO-2022-0427
Sources
NVDJSONOSV GHSA-49w7-5r33-jm9mJSONOSV GHSA-xg75-q3q5-cqmvJSONOSV GO-2022-0427JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD http-swagger_project http-swagger
cpe:2.3:a:http-swagger_project:http-swagger:*:*:*:*:*:*:*:*
< 1.2.6 1.2.6
OSV Go github.com/swaggo/http-swagger < 1.2.6 1.2.6

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 29 Feb 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Apr 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Feb 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Feb 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.