@redocly/cli
Affected
- introduced
0, fixed1.34.17(semver)
Fixed versions
1.34.17
Fix
- Fixed version
1.34.17npm install @redocly/[email protected]
Advisory
Also known as: CVE-2026-63225
Redocly CLI: Path traversal when using split command
Impact
An OpenAPI or AsyncAPI description could make the split command write
files outside the chosen output directory, on the machine of anyone who runssplit 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 andx-codeSamples lang values for a literal ../ — neither legitimately contains
path segments.
Medium Basis: The source's own band: MODERATE
0, fixed 1.34.17 (semver)1.34.17
1.34.17npm install @redocly/[email protected]2.0.0, fixed 2.33.2 (semver)2.33.2
2.33.2npm install @redocly/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0