# GHSA-q324-q795-2q5p: Path traversal when using `preview-docs` when working dir contains files with question mark `?` in name

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-10-12T16:05:11.000Z
- Modified: 2021-10-11T18:40:44.000Z

## Description

### Impact
`preview-docs` command allows path traversal if current working dir contains files with question mark `?` in name and attacker knows the name.

### Patches
It was patched starting from 1.0.0-beta.59

### Workarounds
Do not run openapi-cli preview-docs command in the folder which contains files with question mark `?` in name.

### References
https://github.com/Redocly/openapi-cli/pull/347

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [@redocly/openapi-cli](https://github.com/Redocly/openapi-cli)
* Email us at [security@redocly.com](mailto:security@redocly.com)

(As written by GitHub Advisory Database.)

## Affected

- @redocly/openapi-cli (npm): before 1.0.0-beta.59

## References

- <https://github.com/Redocly/openapi-cli/security/advisories/GHSA-q324-q795-2q5p> (web)
- <https://github.com/Redocly/openapi-cli/pull/347> (web)
- <https://github.com/Redocly/openapi-cli> (package)

## Sources

- GitHub Advisory Database: [GHSA-q324-q795-2q5p](https://github.com/advisories/GHSA-q324-q795-2q5p), CC-BY-4.0, modified 2021-10-11

---

Page: https://cve.day/GHSA-q324-q795-2q5p · Whole record: https://cve.day/GHSA-q324-q795-2q5p.json · Rebuilt by cve.day 2026-11-25T22:56:46.210Z
