{"id":"CVE-2026-63225","state":"PUBLISHED","title":"Redocly CLI: Path traversal when using `split` command","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.","publishedAt":"2026-09-16T19:09:00.593Z","updatedAt":"2026-09-17T16:13:49.405Z","severity":{"score":4.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["Redocly redocly-cli"],"affected":[{"vendor":"Redocly","product":"redocly-cli","versions":[{"version":"< 1.34.17","status":"affected"},{"version":">= 2.0.0, < 2.33.2","status":"affected"}]}],"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"],"weaknesses":["CWE-22","CWE-73"],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/63xxx/CVE-2026-63225.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-63225","state":"PUBLISHED","datePublished":"2026-09-16T19:09:00.593Z","dateUpdated":"2026-09-17T16:13:49.405Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-15T22:19:06.907Z"},"containers":{"cna":{"title":"Redocly CLI: Path traversal when using `split` command","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Redocly","product":"redocly-cli","versions":[{"version":"< 1.34.17","status":"affected"},{"version":">= 2.0.0, < 2.33.2","status":"affected"}]}],"references":[{"url":"https://github.com/Redocly/redocly-cli/security/advisories/GHSA-657c-g7qc-r9j2","name":"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","name":"https://github.com/Redocly/redocly-cli/pull/2891","tags":["x_refsource_MISC"]},{"url":"https://github.com/Redocly/redocly-cli/pull/2923","name":"https://github.com/Redocly/redocly-cli/pull/2923","tags":["x_refsource_MISC"]},{"url":"https://github.com/Redocly/redocly-cli/commit/26a0f299fae0b3bb7bd513043d2f1e90e69f79ee","name":"https://github.com/Redocly/redocly-cli/commit/26a0f299fae0b3bb7bd513043d2f1e90e69f79ee","tags":["x_refsource_MISC"]},{"url":"https://github.com/Redocly/redocly-cli/commit/504120419a72b5c684471478337ee3b45d8bfad3","name":"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","name":"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","name":"https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@2.33.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":4.4,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-73","lang":"en","description":"CWE-73: External Control of File Name or Path","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-16T19:09:00.593Z"},"source":{"advisory":"GHSA-657c-g7qc-r9j2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-17T16:13:39.074016Z","id":"CVE-2026-63225","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-17T16:13:49.405Z"}}]}}}