Quick answers
- Is CVE-2016-1000233 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2016-1000233 being exploited in the wild.
- How severe is CVE-2016-1000233?
- Informational severity, with a CVSS score of 0, published 1 September 2020.
- Which products and versions are affected?
- swagger-ui (npm) SEMVER:introduced=0,fixed=2.2.1.
- Is there a fix for CVE-2016-1000233?
- Yes. swagger-ui (npm): upgrade to 2.2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2016-1000233 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2016-1000233?
- Check whether you run swagger-ui (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- swagger-ui (npm): upgrade to 2.2.1 or later
npm install swagger-ui@2.2.1
Technical details
This is a cross-site scripting (XSS) vulnerability (CWE-79) in Swagger UI versions prior to 2.2.1. The root cause is that Swagger UI automatically executes external JavaScript loaded via the "url" query string parameter when the response includes a Content-Type: application/javascript header, without proper sanitization. An attacker can set up a malicious server returning JavaScript with the correct content-type header, then craft a Swagger UI URL embedding that server's address in the url parameter. When a victim visits the malicious link, the attacker's script executes in their browser context. The attack requires social engineering (convincing a user to click a link) but no authentication. A fix was released in version 2.2.1.
Affected products
- Swagger API Swagger UI before 2.2.1
Identifiers
- CVE-2016-1000233
- GHSA-mrx7-8hxf-f853
Timeline
- 2016-01-12: disclosed
- 2016: patched: Fixed in version 2.2.1