# GHSA-v4x8-gw49-7hv4: Path Traversal in swagger-injector

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T20:37:42.000Z
- Modified: 2020-08-31T18:49:54.000Z
- Weaknesses: CWE-22

## 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.


## Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- swagger-injector (npm): from 0.0.0

## References

- <https://www.npmjs.com/advisories/1172> (web)

## Sources

- GitHub Advisory Database: [GHSA-v4x8-gw49-7hv4](https://github.com/advisories/GHSA-v4x8-gw49-7hv4), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-v4x8-gw49-7hv4 · Whole record: https://cve.day/GHSA-v4x8-gw49-7hv4.json · Rebuilt by cve.day 2026-11-25T22:56:46.574Z
