{"id":"CVE-2026-63225","published":"2026-09-16T19:09:00Z","modified":"2026-09-17T16:13:49Z","title":"Redocly CLI: Path traversal when using `split` command","vendor":"Redocly","product":"redocly-cli","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00179,"percentile":0.0442,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/Redocly/redocly-cli/security/advisories/GHSA-657c-g7qc-r9j2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Redocly/redocly-cli/pull/2891","tags":["x_refsource_MISC"]},{"url":"https://github.com/Redocly/redocly-cli/pull/2923","tags":["x_refsource_MISC"]},{"url":"https://github.com/Redocly/redocly-cli/commit/26a0f299fae0b3bb7bd513043d2f1e90e69f79ee","tags":["x_refsource_MISC"]},{"url":"https://github.com/Redocly/redocly-cli/commit/504120419a72b5c684471478337ee3b45d8bfad3","tags":["x_refsource_MISC"]},{"url":"https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@1.34.17","tags":["x_refsource_MISC"]},{"url":"https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@2.33.2","tags":["x_refsource_MISC"]}],"priority":{"score":4.0,"factors":[{"name":"EPSS percentile","points":0.88},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"redocly","affectedVersions":[{"vendor":"Redocly","product":"redocly-cli","versions":["< 1.34.17",">= 2.0.0, < 2.33.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-17T16:13:39.074016Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@redocly/cli","vulnerableRanges":["<1.34.17",">=2.0.0, <2.33.2"],"patched":["1.34.17","2.33.2"],"from":["GHSA-657c-g7qc-r9j2"],"provenance":"source"}],"summary":{"text":"Redocly CLI (redocly-cli) has a path traversal flaw in its split command, which builds output paths under --outDir from OpenAPI or AsyncAPI component names and x-codeSamples lang values without checking that the resolved path stays inside that directory. An attacker who can supply a specification with crafted ../ segments in those fields, and get a user to run split against it, can cause files to be written or overwritten outside --outDir, though file content is limited to YAML or JSON and code-sample filenames are based on the HTTP method.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:30Z"},"euvd":{"id":"EUVD-2026-81013","exploited":false,"provenance":"source"}}