CVE-2022-24863
HIGH 7.5CVSS 3.1http-swagger XSS via PUT requests
http-swagger is an open source wrapper to automatically generate RESTful API documentation with Swagger 2.0. In versions of http-swagger prior to 1.2.6 an attacker may perform a denial of service attack consisting of memory exhaustion on the host system. The cause of the memory exhaustion is down to improper handling of http methods. Users are advised to upgrade. Users unable to upgrade may to restrict the path prefix to the "GET" method as a workaround.
- Published
- 18 Apr 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-400CWE-755CWE-79
- Also known as
- CVE-2024-25712GHSA-49w7-5r33-jm9mGHSA-xg75-q3q5-cqmvGO-2022-0427
- Sources
- NVDJSONOSV GHSA-49w7-5r33-jm9mJSONOSV GHSA-xg75-q3q5-cqmvJSONOSV GO-2022-0427JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | 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 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 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 |
| 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 |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | http-swagger_project | http-swaggercpe: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
- https://github.com/swaggo/http-swagger/commit/b7d83e8fba85a7a51aa7e45e8244b4173f15049e · Patch, Third Party Advisory, WEB
- https://github.com/swaggo/http-swagger/pull/62 · Third Party Advisory, WEB, FIX
- https://github.com/swaggo/http-swagger/releases/tag/v1.2.6 · Release Notes, Third Party Advisory, WEB
- https://github.com/swaggo/http-swagger/security/advisories/GHSA-xg75-q3q5-cqmv · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-25712 · ADVISORY
- https://cosmosofcyberspace.github.io/improper_http_method_leads_to_xss/poc.html · WEB
- https://github.com/swaggo/http-swagger · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2022-24863 · ADVISORY
- https://github.com/swaggo/http-swagger/issues/61 · REPORT
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 18 Apr 2022)
- 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)