Skip to content
Fencer Intel
low —

GHSA-q324-q795-2q5p json

Path traversal when using `preview-docs` when working dir contains files with question mark `?` in name

published 5y ago modified 5y ago

cvss
—
not scored
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

Summary

### 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)

Patch / fix

  • npm @redocly/openapi-cli 1.0.0-beta.59

Is GHSA-q324-q795-2q5p in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Affected packages

ecosystem package affected fixed in
npm @redocly/openapi-cli
<1.0.0-beta.59
1.0.0-beta.59

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

The maintainers of Redocly/redocly-cli published their own advisory on GitHub. Reviewed sources take precedence over it.