Skip to content
OpenAdvisories
High GHSA-gvff-25cc-4f66

Path Traversal in restify-swagger-jsdoc

Published Sep 3, 2020 · Updated Aug 31, 2020 · Assigned by GHSA

Description

Versions of `restify-swagger-jsdoc` prior to 3.2.1 are vulnerable to Path Traversal. The package fails to properly sanitize URLs, which may allow attackers to access server files outside the `swagger-ui` folder by using relative paths.

## Recommendation

Upgrade to version 3.2.1 or later.

Affected packages

EcosystemPackageAffectedFixedRecord
npm restify-swagger-jsdoc < 3.2.1 3.2.1 GHSA-gvff-25cc-4f66

References