Redocly CLI: Path traversal when using `split` command
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · GHSA-657c-g7qc-r9j2
Published### Impact An OpenAPI or AsyncAPI description could make the `split` command write files outside the chosen output directory, on the machine of anyone who runs `split` against it. The write is constrained rather than a free file-write primitive: component data is emitted only as YAML/JSON, and code-sample files are named after the HTTP method, so an attacker can place or overwrite files at an unintended path but has limited control over their name and contents. ### Patches Fixed in `@redocly/cli` v2.33.2. ### Workarounds Do not run the `split` command on API descriptions from untrusted or unreviewed sources. To detect an exploit attempt, inspect the description's component names and `x-codeSamples` `lang` values for a literal `../` — neither legitimately contains path segments.
- Source published
- 17 Sep 2026 14:58:50 UTC
- Source modified
- 17 Sep 2026 16:32:22 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · GitHub Advisory Database · CC-BY-4.0. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS_V3 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Publisher rating · MODERATE