GHSA-q324-q795-2q5p Path traversal when using `preview-docs` when working dir contains files with question mark `?` in name
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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
- Email us at security@redocly.com
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redocly @redocly/openapi-cli(npm) | < 1.0.0-beta.59; <= 1.0.0-beta.58 | 1.0.0-beta.59 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redocly @redocly/openapi-cli(npm) | <= 1.0.0-beta.58 | No fix listed |
| redocly @redocly/openapi-cli(npm) | < 1.0.0-beta.59 | 1.0.0-beta.59 |
References
- github.com vendor-advisory
- github.com patch
- github.com
- github.com product