GitHub Advisoryadvisory · npm

GHSA-657c-g7qc-r9j2 Redocly CLI: Path traversal when using `split` command

MEDIUM Published 2026-09-17 Modified 2026-09-17 Official page ↗
Aliases
CVE-2026-63225
Ecosystem
npm
Packages
@redocly/cli
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Weaknesses
CWE-22, CWE-73
Reviewed
2026-09-17

Affected packages

• npm @redocly/cli: < 1.34.17 → fixed in 1.34.17 • npm @redocly/cli: >= 2.0.0, < 2.33.2 → fixed in 2.33.2

Description

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.

Related

Alias · CVE (1)

  • CVE-2026-63225 Redocly CLI makes OpenAPI validation, linting, and documentation workflows easier. vulnerability

Weakness · CWE (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-73 External Control of File Name or Path weakness

References