Vulnerability DatabaseGHSA-w59v-r97h-g2c7

GHSA-w59v-r97h-g2c7: 
JavaScript vulnerability analysis and mitigation

Summary

@appium/support exposes an extractAllTo(zipFilePath, destDir, opts) ZIP extraction helper that supports an opt-in useSystemUnzip: true option. When that option is set, extraction is delegated to the system unzip binary and the function returns before the hardened JavaScript extractor runs. The system-unzip path performs no symlink target validation, so an attacker who controls a ZIP archive that an application extracts with useSystemUnzip: true can plant a symbolic link pointing outside the extraction directory and then write attacker-controlled file content to an arbitrary location writable by the Appium process.

Root Cause

The security invariant is that no archive entry may cause a write outside the extraction root. The JavaScript extractor (ZipExtractor) enforces this by resolving each symlink target and rejecting any that escapes the root. The useSystemUnzip: true branch bypasses that enforcement entirely: it invokes the external unzip binary with no symlink-safety flags and no pre- or post-extraction containment check, and extractAllTo returns immediately on success so the ZipExtractor is never constructed. Info-ZIP recreates symbolic links verbatim from archive entries, so a link whose target points outside the destination is written as-is, and a subsequent entry (or a later extraction into the same directory) whose name resolves through that link escapes the extraction root.

Impact

An attacker who controls a ZIP archive that an application extracts through @appium/support with useSystemUnzip: true on a non-Windows host that has the Info-ZIP unzip binary available can create a symbolic link outside the extraction directory and write attacker-controlled content through it to any path writable by the Appium process. Exploitation requires the non-default useSystemUnzip: true option, and achieving the out-of-root write of file content (rather than only the escaping symlink) requires two extractions into the same destination directory with Info-ZIP, which raises attack complexity but is a realistic multi-stage installation pattern. Use-cases with useSystemUnzip disabled (the default configuration) are not affected.


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-133867CRITICAL9.1
  • JavaScript logoJavaScript
  • @fastify/express
NoYesNov 21, 2026
CVE-2026-133250CRITICAL9.1
  • JavaScript logoJavaScript
  • @fastify/middie
NoYesNov 21, 2026
CVE-2026-133120CRITICAL9.1
  • JavaScript logoJavaScript
  • @fastify/express
NoYesNov 21, 2026
CVE-2026-133312MEDIUM5.3
  • JavaScript logoJavaScript
  • @fastify/rate-limit
NoYesNov 21, 2026
CVE-2026-133273LOW3.7
  • JavaScript logoJavaScript
  • @fastify/swagger-ui
NoYesNov 21, 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

Additional Wiz resources

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