CVE-2026-63225: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Redocly redocly-cli
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.
AI Analysis
Technical Summary
Redocly CLI versions prior to 2.33.2 have a CWE-22 path traversal vulnerability in the split command. The command uses untrusted input from OpenAPI or AsyncAPI component names and x-codeSamples lang values to construct output paths under the --outDir directory without proper validation. If these inputs contain '../' traversal sequences, the command can write files outside the intended directory. However, the component data is limited to YAML or JSON, and code-sample filenames are based on HTTP methods, so arbitrary content file writes are not possible. The vulnerability is resolved in version 2.33.2.
Potential Impact
An attacker providing crafted OpenAPI or AsyncAPI descriptions with traversal sequences in component names or x-codeSamples lang values could cause the split command to write or overwrite files outside the designated output directory. This could lead to limited integrity impact by overwriting files, but does not allow arbitrary content writes or confidentiality breaches. The CVSS score is 4.4 (medium severity) reflecting limited impact and local attack vector with user interaction required.
Mitigation Recommendations
Upgrade to Redocly CLI version 2.33.2 or later, where this path traversal vulnerability is fixed. No other mitigation is required as the issue is resolved in the official fix.
CVE-2026-63225: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Redocly redocly-cli
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.
CVSS v3.1
Score 4.4medium
Affected software
Redocly
redocly-cli
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Redocly CLI versions prior to 2.33.2 have a CWE-22 path traversal vulnerability in the split command. The command uses untrusted input from OpenAPI or AsyncAPI component names and x-codeSamples lang values to construct output paths under the --outDir directory without proper validation. If these inputs contain '../' traversal sequences, the command can write files outside the intended directory. However, the component data is limited to YAML or JSON, and code-sample filenames are based on HTTP methods, so arbitrary content file writes are not possible. The vulnerability is resolved in version 2.33.2.
Potential Impact
An attacker providing crafted OpenAPI or AsyncAPI descriptions with traversal sequences in component names or x-codeSamples lang values could cause the split command to write or overwrite files outside the designated output directory. This could lead to limited integrity impact by overwriting files, but does not allow arbitrary content writes or confidentiality breaches. The CVSS score is 4.4 (medium severity) reflecting limited impact and local attack vector with user interaction required.
Mitigation Recommendations
Upgrade to Redocly CLI version 2.33.2 or later, where this path traversal vulnerability is fixed. No other mitigation is required as the issue is resolved in the official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-15T22:19:06.907Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aaaeb3055bf5e2cf50ccfac
Added to database: 09/16/2026, 19:17:04 UTC
Last enriched: 09/16/2026, 19:31:42 UTC
Last updated: 09/17/2026, 03:43:42 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.