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 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.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| npm-Paket | @redocly/cli | < 1.34.17, >= 2.0.0, < 2.33.2 | 1.34.17, 2.33.2 |
Verweise
- https://github.com/Redocly/redocly-cli/security/advisories/GHSA-657c-g7qc-r9j2
- https://nvd.nist.gov/vuln/detail/CVE-2026-63225
- https://github.com/Redocly/redocly-cli/pull/2891
- https://github.com/Redocly/redocly-cli/pull/2923
- https://github.com/Redocly/redocly-cli/commit/26a0f299fae0b3bb7bd513043d2f1e90e69f79ee
- https://github.com/Redocly/redocly-cli/commit/504120419a72b5c684471478337ee3b45d8bfad3
- https://github.com/Redocly/redocly-cli
- https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@1.34.17
- https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@2.33.2
- CVSS-Vektor
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L- Schwäche (CWE)
CWE-22, CWE-73- Plattform
- npm
- Paket
@redocly/cli- Veröffentlicht
- 17.09.2026
- Aktualisiert
- 11.10.2026 10:22
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-657c-g7qc-r9j2 - CC BY 4.0
Schwachstellenhistorie: @redocly/cli
Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
Dies ist die einzige bekannte Schwachstelle dieses Pakets.
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.