GHSA-q324-q795-2q5p

Suggest an improvement
Source
https://github.com/advisories/GHSA-q324-q795-2q5p
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-q324-q795-2q5p/GHSA-q324-q795-2q5p.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q324-q795-2q5p
Published
2021-10-12T16:05:11Z
Modified
2021-10-11T18:40:44Z
Summary
Path traversal when using `preview-docs` when working dir contains files with question mark `?` in name
Details

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:

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-10-11T18:40:44Z",
    "nvd_published_at":  null,
    "severity":  "LOW"
}
References

Affected packages

npm / @redocly/openapi-cli

Package

Name
@redocly/openapi-cli
View open source insights on deps.dev
Purl
pkg:npm/%40redocly/openapi-cli

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.0.0-beta.59

Database specific

last_known_affected_version_range
"<= 1.0.0-beta.58"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-q324-q795-2q5p/GHSA-q324-q795-2q5p.json"