This repository was archived by the owner on Feb 22, 2022. It is now read-only.
WS-2021-0461 (Medium) detected in swagger-ui-2.1.4.tgz #77
Labels
security vulnerability
Security vulnerability detected by WhiteSource
WS-2021-0461 - Medium Severity Vulnerability
Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
Library home page: https://registry.npmjs.org/swagger-ui/-/swagger-ui-2.1.4.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/node-red-node-swagger/node_modules/swagger-ui/package.json
Dependency Hierarchy:
SwaggerUI supports displaying remote OpenAPI definitions through the ?url parameter. This enables robust demonstration capabilities on sites like petstore.swagger.io, editor.swagger.io, and similar sites, where users often want to see what their OpenAPI definitions would look like rendered.
However, this functionality may pose a risk for users who host their own SwaggerUI instances. In particular, including remote OpenAPI definitions opens a vector for phishing attacks by abusing the trusted names/domains of self-hosted instances.
Resolution:
We've made the decision to disable query parameters (#4872) by default starting with SwaggerUI version 4.1.3. Please update to this version when it becomes available (ETA: 2021 December). Users will still be able to be re-enable the options at their discretion. We'll continue to enable query parameters on the Swagger demo sites.
Publish Date: 2021-12-09
URL: WS-2021-0461
Base Score Metrics:
Type: Upgrade version
Origin: GHSA-qrmm-w75w-3wpx
Release Date: 2021-12-09
Fix Resolution: swagger-ui - 4.1.3;swagger-ui-dist - 4.1.3
Step up your Open Source Security Game with WhiteSource here
The text was updated successfully, but these errors were encountered: