CVE-2026-63225: Redocly CLI: Path traversal when using `split` command

Published Sep 16, 2026
·
Updated

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 Software

1 affected component
npm/@redocly/cli<2.33.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade @redocly/cli to a version that resolves this vulnerability.

    Fixed in 2.33.2

Event History

Sep 16, 2026
CVE Published
via MITRE·07:09 PM
Data Sourced
via MITRE·07:09 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Users of @redocly/cli versions earlier than 2.33.2 are exposed when they run the split command on OpenAPI or AsyncAPI descriptions whose component names or x-codeSamples lang values are attacker-controlled or otherwise untrusted.

2

What must an attacker control to exploit it?

The attacker needs to provide a description containing literal ../ traversal segments in component names or x-codeSamples lang values, and a user must run the split command against that description. The attack is local and requires user interaction, as reflected by the AV:L and UI:R vector.

3

How much control does this give over written files?

It can cause files to be placed or overwritten outside the selected --outDir, but it is not an unrestricted arbitrary-content file write. Component output remains limited to YAML or JSON, and code-sample filenames are based on the HTTP method.

4

What is the remediation?

Upgrade @redocly/cli to version 2.33.2, which fixes the path validation issue. If upgrading is not immediately possible, do not run split on untrusted API descriptions and review component names and x-codeSamples lang values for literal ../ segments before processing.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203