{"id":"GHSA-gvff-25cc-4f66","aliases":[],"status":"published","title":"Path Traversal in restify-swagger-jsdoc","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.  \n\n\n\n## Recommendation\n\nUpgrade to version 3.2.1 or later.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2020-09-03T17:15:56Z","modified":"2023-01-09T05:03:57Z","fixes":[{"ecosystem":"npm","package":"restify-swagger-jsdoc","fixed_in":["3.2.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"restify-swagger-jsdoc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.1"}]}]},{"source":"osv","ecosystem":"npm","package":"restify-swagger-jsdoc","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.2.1"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1037","tags":["web"]},{"url":"https://github.com/advisories/GHSA-gvff-25cc-4f66"}],"sources":{"ghsa":[{"id":"GHSA-gvff-25cc-4f66","title":"Path Traversal in restify-swagger-jsdoc","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.  \n\n\n\n## Recommendation\n\nUpgrade to version 3.2.1 or later.","status":"published","published":"2020-09-03T17:15:56Z","modified":"2023-01-09T05:03:57Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:07.581563Z"}],"osv":[{"id":"GHSA-gvff-25cc-4f66","title":"Path Traversal in restify-swagger-jsdoc","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.  \n\n\n\n## Recommendation\n\nUpgrade to version 3.2.1 or later.","status":"published","published":"2020-09-03T17:15:56Z","modified":"2020-08-31T18:44:58Z","cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:48.191583Z"}]}}
