{"id":"GHSA-q324-q795-2q5p","aliases":["GHSA-q324-q795-2q5p"],"related":[],"kind":"vulnerability","state":"published","title":"Path traversal when using `preview-docs` when working dir contains files with question mark `?` in name","summary":"### Impact\n`preview-docs` command allows path traversal if current working dir contains files with question mark `?` in name and attacker knows the name.\n\n### Patches\nIt was patched starting from 1.0.0-beta.59\n\n### Workarounds\nDo not run openapi-cli preview-docs command in the folder which contains files with question mark `?` in name.\n\n### References\nhttps://github.com/Redocly/openapi-cli/pull/347\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [@redocly/openapi-cli](https://github.com/Redocly/openapi-cli)\n* Email us at [security@redocly.com](mailto:security@redocly.com)","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n`preview-docs` command allows path traversal if current working dir contains files with question mark `?` in name and attacker knows the name.\n\n### Patches\nIt was patched starting from 1.0.0-beta.59\n\n### Workarounds\nDo not run openapi-cli preview-docs command in the folder which contains files with question mark `?` in name.\n\n### References\nhttps://github.com/Redocly/openapi-cli/pull/347\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [@redocly/openapi-cli](https://github.com/Redocly/openapi-cli)\n* Email us at [security@redocly.com](mailto:security@redocly.com)","format":"markdown","source":"ghsa"}],"published":"2021-10-12T16:05:11.000Z","modified":"2021-10-11T18:40:44.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.0-beta.59"}],"ecosystem":"npm","package":"@redocly/openapi-cli","purl":"pkg:npm/%40redocly/openapi-cli","source":"ghsa"}],"references":[{"url":"https://github.com/Redocly/openapi-cli/security/advisories/GHSA-q324-q795-2q5p","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Redocly/openapi-cli/pull/347","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Redocly/openapi-cli","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q324-q795-2q5p","url":"https://github.com/advisories/GHSA-q324-q795-2q5p","licence":"CC-BY-4.0","modified":"2021-10-11T18:40:44.000Z"}],"updatedAt":"2026-11-25T22:56:46.210Z"}