Pionxzh wakaru
@wakaru/cli arbitrary file write during bundle unpack
wakaru is a JavaScript decompiler and unminifier toolkit. From 1.0.0 until 1.4.0, @wakaru/cli sanitizes bundle-controlled module filenames only once before writing extracted modules, so a crafted filename containing overlapping traversal sequences such as ....// collapses to ../ after sanitization and lets the final output path escape the selected output directory, allowing an attacker who can cause a user to run wakaru --unpack on a malicious bundle to write files outside that directory and, depending on the target path and environment, potentially achieve code execution. This issue is fixed in @wakaru/cli 1.4.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.0.0, < 1.4.0
Fixed in 1.4.0
Mitigation
Upgrade wakaru to 1.4.0 or later.
References
- Vendor advisory github.com/pionxzh/wakaru/security/advisories/…
- Patch github.com/pionxzh/wakaru/commit/1d30383b20a6f…
- Release notes github.com/pionxzh/wakaru/releases/tag/v1.4.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.