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

Medium 4.4 Published Updated

Attackers can use crafted OpenAPI or AsyncAPI files to write or overwrite files outside the intended output directory via the split command.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-63225?

CVE-2026-63225 is a medium-severity path traversal vulnerability in redocly-cli, published on 16 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-73, CWE-22

Which versions are affected by CVE-2026-63225?

4 open source packages ship an affected version, including @redocly/cli.

PackageAffectedFixed in
@redocly/cli npmAll versions1.34.17
@redocly/cli npmAll versions1.34.17
@redocly/cli npmFrom 2.0.02.33.2
@redocly/cli npmFrom 2.0.02.33.2

How do I fix CVE-2026-63225?

Upgrade @redocly/cli to a fixed version for your release line: 1.34.17 or 2.33.2.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-63225 being exploited?

There is no known exploitation of CVE-2026-63225 in the wild and no public exploit code.

Sources

Also known as GHSA-657c-g7qc-r9j2.

Is CVE-2026-63225 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free