preview-docs command allows path traversal if current working dir contains files with question mark ? in name and attacker knows the name.
It was patched starting from 1.0.0-beta.59
Do not run openapi-cli preview-docs command in the folder which contains files with question mark ? in name.
https://github.com/Redocly/openapi-cli/pull/347
If you have any questions or comments about this advisory:
{
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2021-10-11T18:40:44Z",
"nvd_published_at": null,
"severity": "LOW"
}