{"id":"GHSA-v4x8-gw49-7hv4","aliases":[],"status":"published","title":"Path Traversal in swagger-injector","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-22"],"published":"2020-09-03T20:37:42Z","modified":"2023-01-09T05:03:48Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"swagger-injector","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"swagger-injector","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/1172","tags":["web"]},{"url":"https://github.com/advisories/GHSA-v4x8-gw49-7hv4"}],"sources":{"ghsa":[{"id":"GHSA-v4x8-gw49-7hv4","title":"Path Traversal in swagger-injector","description":"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.","status":"published","published":"2020-09-03T20:37:42Z","modified":"2023-01-09T05:03:48Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:06.884904Z"}],"osv":[{"id":"GHSA-v4x8-gw49-7hv4","title":"Path Traversal in swagger-injector","description":"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.","status":"published","published":"2020-09-03T20:37:42Z","modified":"2020-08-31T18:49:54Z","cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:56.639206Z"}]}}
