CVE-2016-1000229
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 · uneditedswagger-ui has XSS in key names
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 · moderate confidenceCross-site scripting (XSS) vulnerability in swagger-ui allows injection of malicious JavaScript through API key names that are not properly sanitized or encoded before being rendered in the web interface.
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= 6.3= 2.0all versionsCVSS 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
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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 checksWork through these to decide whether this CVE applies to you.
-
Identify if swagger-ui is deployed in your environmentSearch for swagger-ui files, check application manifests, or scan for swagger-ui endpoints (typically at /swagger-ui, /swagger, /api-docs, or /swagger-ui/index.html) in your web server logs or configurationAffected if swagger-ui is found and accessible in your environment
-
Determine the swagger-ui versionCheck the swagger-ui JavaScript file (swagger-ui-bundle.js or older versions like swagger-ui.js) for version comments, or check package.json/dependencies if using a packaged version. Compare against affected versions: Smartbear all versions, Redhat Jboss Fuse 6.3, Redhat Openshift 2.0Affected if The installed version matches any affected product version listed in the CVE
-
Check if API key authentication is configured in your swagger specOpen your swagger.json or OpenAPI specification file and examine the securityDefinitions (OpenAPI 2.0) or security schemes (OpenAPI 3.0) section. Look for security schemes with type: apiKeyAffected if API key authentication is defined in your swagger specification
-
Inspect how swagger-ui renders API key name fieldsView the swagger-ui HTML page source or the swagger-ui bundle JavaScript. Look for the code that renders the apiKey input field (typically in the auth plugin or apidefinition plugin). Check if the key name from your swagger spec is inserted into the DOM without encodingAffected if The API key name from your swagger spec is displayed in the UI without proper HTML encoding
-
Verify Content Security Policy headers are absent or weakCheck HTTP response headers from your swagger-ui endpoint for Content-Security-Policy header. If absent or does not include 'unsafe-inline' restrictions, XSS execution is possibleAffected if CSP headers are missing or allow inline scripts (unsafe-inline)
Your environment is affected if swagger-ui is deployed, uses an affected version, and has API key authentication configured in the swagger spec with key names rendered in the web interface without encoding.
Generated from the published advisory. Verify against your own configuration.
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 dataApply proper output encoding/sanitization to all key names displayed in the swagger-ui, and implement Content Security Policy headers to mitigate XSS risks.
- Consultation2.0 h
- Implementation6.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,904.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2016-1000229 — 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2016-1000229 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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