{"id":"CVE-2026-63225","aliases":["CVE-2026-63225","GHSA-657c-g7qc-r9j2"],"related":[],"kind":"vulnerability","state":"published","title":"Redocly CLI: Path traversal when using `split` command","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn OpenAPI or AsyncAPI description could make the `split` command write\nfiles outside the chosen output directory, on the machine of anyone who runs\n`split` against it. The write is constrained rather than a free file-write\nprimitive: component data is emitted only as YAML/JSON, and code-sample files are\nnamed after the HTTP method, so an attacker can place or overwrite files at an\nunintended path but has limited control over their name and contents.\n\n### Patches\n\nFixed in `@redocly/cli` v2.33.2.\n\n### Workarounds\n\nDo not run the `split` command on API descriptions from untrusted or unreviewed sources.\n\nTo detect an exploit attempt, inspect the description's component names and\n`x-codeSamples` `lang` values for a literal `../` — neither legitimately contains\npath segments.","format":"markdown","source":"ghsa"}],"published":"2026-09-16T19:09:00.593Z","modified":"2026-09-30T17:51:36.337Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","score":4.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","score":4.4,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-73"],"affected":[{"ranges":[{"version":"< 1.34.17","status":"affected"},{"version":">= 2.0.0, < 2.33.2","status":"affected"}],"vendor":"Redocly","product":"redocly-cli","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.34.17"}],"ecosystem":"npm","package":"@redocly/cli","purl":"pkg:npm/%40redocly/cli","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.33.2"}],"ecosystem":"npm","package":"@redocly/cli","purl":"pkg:npm/%40redocly/cli","source":"ghsa"}],"references":[{"url":"https://github.com/Redocly/redocly-cli/security/advisories/GHSA-657c-g7qc-r9j2","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Redocly/redocly-cli/pull/2891","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Redocly/redocly-cli/pull/2923","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Redocly/redocly-cli/commit/26a0f299fae0b3bb7bd513043d2f1e90e69f79ee","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Redocly/redocly-cli/commit/504120419a72b5c684471478337ee3b45d8bfad3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@1.34.17","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Redocly/redocly-cli/releases/tag/@redocly/cli@2.33.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63225","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Redocly/redocly-cli","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-17T16:13:39.074Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63225","url":"https://www.cve.org/CVERecord?id=CVE-2026-63225","licence":"CVE Terms of Use","modified":"2026-09-17T16:13:49.405Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-657c-g7qc-r9j2","url":"https://github.com/advisories/GHSA-657c-g7qc-r9j2","licence":"CC-BY-4.0","modified":"2026-09-17T16:32:22.063Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63225","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63225","licence":"Public domain","modified":"2026-09-30T17:51:36.337Z"}],"updatedAt":"2026-11-25T22:59:39.095Z","epss":{"score":0.00172,"percentile":0.06867,"date":"2026-12-01T12:00:22.000Z"}}