CVE-2017-1000208: Deserialization of Untrusted Data in swagger-parser

io.swagger:swagger-codegen Updated 02 Oct 2025

Summary

19/10/2018
Yes i
High
8.8

CVE-2017-1000208: Deserialization of Untrusted Data in swagger-parser. Affects io.swagger:swagger-codegen versions < 2.2.2. Fixed in 2.2.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package under scrutiny is swagger-parser, a library used for parsing and manipulating OpenAPI specifications. It provides functionality to generate and validate code based on these specifications. The vulnerability affects versions up to 1.0.30 of swagger-parser and versions up to 2.2.2 of swagger-codegen. The vulnerability arises from a flaw in the yaml parsing functionality, which allows arbitrary code execution when parsing a maliciously crafted yaml OpenAPI specification.

Vulnerability Detail

The vulnerability allows an attacker to execute arbitrary code by providing a specially crafted yaml OpenAPI specification. When this malicious specification is parsed using the 'generate' or 'validate' command in swagger-codegen, the code execution occurs. This can lead to severe consequences, including unauthorized access, data manipulation, or even complete system compromise. The vulnerability has a CVSS score of 8.8, indicating a high severity level.

How To Fix

Minimum fixed version

2.2.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update the affected packages to the fixed versions as soon as possible.

Conclusion

In conclusion, the vulnerability in swagger-parser allows for arbitrary code execution when parsing a malicious yaml OpenAPI specification. It is crucial to update the affected packages to the fixed versions to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for io.swagger:swagger-codegen →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary code, potentially leading to unauthorized access, data manipulation, or system compromise.

Versions up to 1.0.30 of swagger-parser are affected.

Versions up to 2.2.2 of swagger-codegen are affected.

No, there are no known workarounds for this vulnerability. Updating the affected packages is the recommended solution.

The CVSS score of this vulnerability is 8.8, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for io.swagger:swagger-codegen.

How To Fix

Minimum fixed version

2.2.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback