Vulnerability DatabaseGHSA-q324-q795-2q5p

GHSA-q324-q795-2q5p
JavaScript vulnerability analysis and mitigation

Overview

A path traversal vulnerability was discovered in the @redocly/openapi-cli npm package affecting versions >=1.0.0-beta.9 and <1.0.0-beta.59. The vulnerability was identified in the preview-docs command functionality and was disclosed on October 9, 2021. The issue specifically affects scenarios where the working directory contains files with question mark (?) characters in their names (GitHub Advisory).

Technical details

The vulnerability exists in the preview server component of the preview-docs command. When processing URLs containing query parameters, the path.resolve() function incorrectly handles paths containing question marks, potentially allowing attackers to traverse directories and access files outside the intended directory structure. The issue was particularly exploitable when the working directory contained files with question marks in their names (Redocly PR).

Impact

When exploited, this vulnerability allows attackers to access and download arbitrary files from the server's filesystem, provided they know the file names and the working directory contains files with question marks. This could lead to unauthorized access to sensitive system files (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in version 1.0.0-beta.59 of @redocly/openapi-cli. For users unable to update immediately, the recommended workaround is to avoid running the openapi-cli preview-docs command in folders containing files with question marks in their names. The fix implements a more robust solution by checking if the file path is within the current working directory (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23744CRITICAL9.8
  • JavaScriptJavaScript
  • @mcpjam/inspector
NoYesJan 16, 2026
CVE-2026-23735HIGH8.7
  • JavaScriptJavaScript
  • graphql-modules
NoYesJan 16, 2026
GHSA-gw32-9rmw-qwwwHIGH8.4
  • JavaScriptJavaScript
  • svelte
NoYesJan 16, 2026
CVE-2026-23745HIGH8.2
  • JavaScriptJavaScript
  • nodejs-full-i18n
NoYesJan 16, 2026
GHSA-38cw-85xc-xr9xMEDIUM6.8
  • JavaScriptJavaScript
  • @veramo/data-store
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management