Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft OpenAPI spec with ../ in component name
-
ExploitVictim runs redocly split --outDir
-
Executionsplit resolves path outside outDir
-
ImpactWrite/overwrite YAML or JSON file outside target dir
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an operator to run the '@redocly/cli' split command with an --outDir against an attacker-controlled OpenAPI or AsyncAPI specification whose component names or x-codeSamples lang values contain literal '../' path-traversal segments. Limiting factors: this is a local CLI operation (AV:L), no authentication is modeled but the victim must actively invoke split on the malicious file (UI:R), the affected version must be @redocly/cli < 2.33.2 (or the pre-1.34.17 1.x branch), and impact is bounded to writing/overwriting YAML/JSON files with non-attacker-controlled content - it cannot achieve arbitrary-content code drops. Realistic risk is concentrated in CI/CD or documentation pipelines that run split on externally sourced API definitions. |
| Impact | This is a genuine but low-severity issue, and all available signals agree. The vendor CVSS 3.1 vector (4.4, AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L) correctly frames it as a LOCAL vulnerability that requires the victim to run the 'redocly split' command against an attacker-supplied OpenAPI/AsyncAPI document (UI:R). There is no network exposure - the CLI processes a spec file the operator chose to feed it. No EPSS score is provided in the input, there is no CISA KEV listing, and no public weaponized exploit was identified (the fix ships internal PoC test fixtures, but those are not a distributed exploit). Technical impact is deliberately constrained: the description states written content is limited to YAML/JSON and code-sample filenames are derived from the HTTP method, so this is NOT an unrestricted arbitrary-content file write - hence C:N and only I:L/A:L (attacker can place or overwrite files outside --outDir but cannot fully control their contents). No metrics are missing or conflicting; the vector is internally consistent with the description. Bottom line: real defect, correctly patched, but low real-world priority - dangerous mainly in CI/automation pipelines that run split on untrusted specs. |
| Exploit ScenarioDerived | An attacker publishes or submits a malicious OpenAPI/AsyncAPI document whose component name (or x-codeSamples lang value) contains literal '../' traversal segments. A developer or CI pipeline runs 'redocly split --outDir ...' on that document, causing the tool to write or overwrite a YAML/JSON file at a path outside the intended output directory. No public exploit code exists, but the vendor commit includes proof-of-concept fixture specs (e.g. a schema named '../../../../../../tmp/redocly_escaped') demonstrating the escape. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Path traversal in the Redocly CLI split command (@redocly/cli prior to 2.33.2, and the 1.x line prior to 1.34.17) lets a crafted OpenAPI or AsyncAPI document place or overwrite YAML/JSON files outside the directory supplied to --outDir. The command derives output filenames from untrusted component names, path keys, and x-codeSamples lang values without confirming the resolved target stays inside the chosen directory, so literal ../ segments in those fields escape the output tree. Impact is deliberately bounded - content is limited to YAML/JSON and code-sample filenames stay based on the HTTP method - yielding an integrity-only file write rated CVSS 4.4 (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L), with unauthenticated (PR:N) exploitation that nonetheless requires a victim to run split on the malicious spec; no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to @redocly/cli 2.33.2 (or later 2.x) if you are on the 2.x line, or to @redocly/cli 1.34.17 (or later) if you are pinned to 1.x - both are tagged releases referenced from the advisory at https://github.com/Redocly/redocly-cli/security/advisories/GHSA-657c-g7qc-r9j2, and the guardrail logic is visible in https://github.com/Redocly/redocly-cli/pull/2891 and https://github.com/Redocly/redocly-cli/pull/2923. If upgrading must be deferred, the practical compensating controls are: stop running split against API definitions you did not author - treat externally sourced specs as untrusted input and review them for ../ sequences in component keys, path/channel names, and x-codeSamples lang values before splitting, at the cost of a manual review step that is easy to skip for large specifications; run the command inside a throwaway container or CI job whose working tree is the only writable location (read-only mounts elsewhere, unprivileged user, no access to home directories or config paths), which contains the escape to disposable storage but does not prevent the overwrite itself; and restrict the filesystem permissions of the account executing the CLI so targets outside the intended output directory are not writable, accepting that this may break legitimate out-of-tree writes. Note that upgrading is the only control that removes the flawed path construction rather than bounding its blast radius, and that renaming or sanitizing component names before invocation is a viable manual workaround but must be applied consistently across every split input.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Redocly CLI split command decomposes a single OpenAPI or AsyncAPI definition into a directory tree of smaller files, computing each output path by joining --outDir with names taken from the document itself: schema/component keys, channel, operation and path names, and x-codeSamples lang values, with user-selectable separators. Because those names are attacker-controlled and were concatenated without canonicalization, a key such as ../../../../../../tmp/redocly_escaped resolved to a location above the intended output directory - the classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) root cause. The upstream fix introduces an assertWithinDir guard (packages/cli/src/commands/split/utils/assert-within-dir.ts) that resolves the candidate path and throws a HandledError when it falls outside the target directory, and wires it into the AsyncAPI channel, component and operation iterators so no file is written on a failed check; regression tests cover .. escapes and also confirm that benign names merely beginning with dots (e.g. ..foo.yaml) and sibling directories sharing a name prefix are handled correctly. Two release branches are affected: the 2.x line before 2.33.2 and the 1.x line before 1.34.17. The CVSS vector AV:L reflects that this is a local command-line operation rather than a network service, UI:R reflects that the operator must actively run the command against the hostile specification, and S:U/C:N/I:L/A:L reflects that exploitation cannot leak data and can only overwrite files with structured YAML/JSON content of limited attacker control.
Know when TypeScript gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Local CLI processing of an attacker-supplied spec the victim must choose to split (AV:L/UI:R); no read impact (C:N) and only constrained file overwrite outside outDir (I:L/A:L).
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
More in TypeScript
View allPath traversal in decap-server 3.10.0 and earlier lets unauthenticated remote attackers read, write, and delete files in
Joplin Server instances prior to 3.7.2 expose an SSO login-code redemption endpoint (GET /api/login_with_code/:id) that
Cross-tenant authorization bypass in TinaCMS self-hosted deployments allows any holder of a legitimate TinaCloud account
Authenticated clients on deepstream.io 10.1.0 can bypass record-write authorization and modify arbitrary protected recor
OS command injection in zosmaai's pi-llm-wiki through 0.11.7 lets an attacker who can invoke the wiki_capture_source MCP
A remote, unauthenticated denial-of-service condition in the NestJS (Nest) microservices framework lets an attacker cras
Fee-sponsoring servers built on mppx before 0.8.2 can be induced by any client with access to the sponsorship endpoint t
Code escaping sandbox in the PraisonAI npm package's built-in codeMode tool (praisonai 1.4.0 through 1.7.1) lets anyone
Unauthenticated passkey enrollment in OpenReception appointment-booking software prior to 1.1.1 lets remote attackers in
A credential-isolation flaw in geelen mcp-remote 0.1.16 through 0.1.38 allows a remote attacker who controls or can pred
Remote code execution affects Univer v1.0.0-alpha.2 through its Uniscript feature: the UniscriptExecutionService.execute
Dokploy instances running versions prior to 0.29.13 disclose stored Git provider secrets - GitHub App private keys, OAut
EUVD-2026-81013
GHSA-657c-g7qc-r9j2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB