CVE-2017-1000207Swagger-codegen
High 8.8 No auth needed
Follow: this CVE · Swagger · Swagger-codegen We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.0
- 8.8
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Nov 27, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
A vulnerability in Swagger-Parser's version <= 1.0.30 and Swagger codegen version <= 2.2.2 yaml parsing functionality results in arbitrary code being executed when a maliciously crafted yaml Open-API specification is parsed. This in particular, affects the 'generate' and 'validate' command in swagger-codegen (<= 2.2.2) and can lead to arbitrary code being executed when these commands are used on a well-crafted yaml specification.
What to do
- Apply the vendor's security update for Swagger-codegen.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | io.swagger:swagger-codegen |
< 2.2.2 |
2.2.2 |
— |
| Maven | io.swagger:swagger-parser |
< 1.0.31 |
1.0.31 |
— |
Per OSV / GitHub Advisories (GHSA-vgvf-9jh3-fg75). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| swagger | swagger-codegen | ≤ 2.2.2 |
| swagger | swagger-parser | ≤ 1.0.30 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking
- lgtm.com Third Party Advisory