{"id":"GHSA-v4x8-gw49-7hv4","summary":"Path Traversal in swagger-injector","details":"All versions of `swagger-injector` are vulnerable to Path Traversal. The package fails to sanitize URLs, allowing attackers to access server files outside of the configured `dist` folder using relative paths.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","modified":"2020-08-31T18:49:54Z","published":"2020-09-03T20:37:42Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2020-08-31T18:49:54Z","nvd_published_at":null,"cwe_ids":["CWE-22"]},"references":[{"type":"WEB","url":"https://www.npmjs.com/advisories/1172"}],"affected":[{"package":{"name":"swagger-injector","ecosystem":"npm","purl":"pkg:npm/swagger-injector"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-v4x8-gw49-7hv4/GHSA-v4x8-gw49-7hv4.json"}}],"schema_version":"1.9.0"}