UnratednpmAmendedPublished
Path Traversal in restify-swagger-jsdoc
GHSA-gvff-25cc-4f66
- Affected
- npm restify-swagger-jsdoc < 3.2.1
- Fixed in
- 3.2.1· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 3.2.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.