Swagger CodegenApplication · Swagger

CVE-2017-1000208

HIGH · 8.8 CVSS v3.0 Published 2017-11-17
Fix available
A fix is available. Upgrade to after 2.2.2 or later.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

This is a YAML deserialization vulnerability in Swagger-Parser <= 1.0.30 that allows arbitrary code execution when parsing maliciously crafted Open-API YAML specifications. The vulnerability affects the 'generate' and 'validate' commands in swagger-codegen <= 2.2.2, enabling attackers to execute arbitrary code by providing a specially crafted YAML file.

MitigationUpgrade Swagger-Parser to version > 1.0.30 and swagger-codegen to version > 2.2.2 to remediate the arbitrary code execution vulnerability. Avoid processing untrusted YAML specifications until patches are applied.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Swagger CodegenApplication
Affected:<= 2.2.2
Swagger ParserApplication
Affected:<= 1.0.30

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check swagger-codegen version
    Run `swagger-codegen --version` or `java -jar swagger-codegen-cli.jar version` to determine the installed version. If using a build tool, inspect pom.xml, build.gradle, or package.json for the swagger-codegen version entry.
    Affected if The version is 2.2.2 or lower.
  2. Check swagger-parser version
    Inspect your project's dependency file: for Maven check pom.xml for 'swagger-parser', for Gradle check build.gradle, or for npm check package.json. Look for the swagger-parser dependency and its version.
    Affected if The swagger-parser version is 1.0.30 or lower.
  3. Identify if generate or validate commands are used
    Review any scripts, CI/CD pipelines, or build configurations that invoke swagger-codegen. Look for usage of the `generate` or `validate` commands that process YAML specification files.
    Affected if These commands process external or untrusted Open-API YAML files.
  4. Check for untrusted YAML processing
    Audit any automated flows or user-facing interfaces that accept Open-API YAML specifications and pass them to swagger-codegen for processing.
    Affected if The application processes YAML specifications from untrusted sources.

You are affected if swagger-codegen is version 2.2.2 or lower, or swagger-parser is version 1.0.30 or lower, AND your environment uses the generate or validate commands to process Open-API YAML files.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to a release after 2.2.2
Interim mitigation

Upgrade Swagger-Parser to version > 1.0.30 and swagger-codegen to version > 2.2.2 to remediate the arbitrary code execution vulnerability. Avoid processing untrusted YAML specifications until patches are applied.

Fix this in Swagger Codegen Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing4.0 h
  • Review / QA2.0 h
10.0 hours of engineering $1,720
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,752.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2017-1000208 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2017-1000208 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data