# GHSA-4x7w-frcq-v4m3: Path Traversal in @wturyn/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:38:47.000Z
- Modified: 2020-08-31T18:49:56.000Z
- Weaknesses: CWE-22

## Description

All versions of `@wturyn/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

- @wturyn/swagger-injector (npm): from 0.0.0

## References

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

## Sources

- GitHub Advisory Database: [GHSA-4x7w-frcq-v4m3](https://github.com/advisories/GHSA-4x7w-frcq-v4m3), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-4x7w-frcq-v4m3 · Whole record: https://cve.day/GHSA-4x7w-frcq-v4m3.json · Rebuilt by cve.day 2026-11-25T22:56:44.083Z
