Description
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.
Published: 2026-07-28
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A sanitization bug in the @wakaru/cli tool allows crafted bundle filenames to escape the intended output directory during unpacking, enabling an attacker who can supply a malicious bundle to write files outside the designated folder. This path traversal flaw can lead to arbitrary file overwrite and, depending on the target path, may allow code execution. The likely attack vector is that an attacker distributes a malicious bundle and a user runs the `wakaru --unpack` command, an inference drawn from the description because the vulnerability description mentions a user‑initiated unpack action.

Affected Systems

The JavaScript decompiler and unminifier toolkit wakaru, specifically its CLI component @wakaru/cli version 1.0.0 through 1.3.x, is affected. Users of any of these releases that invoke the --unpack option are potentially impacted. The issue was resolved in @wakaru/cli 1.4.0, which removed the single‑pass sanitization and correctly restricts output paths.

Risk and Exploitability

The CVSS score of 7.1 indicates a substantial threat, while the EPSS score of less than 1% suggests a low but non‑zero likelihood of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an attacker to supply a crafted bundle and convince a user to run the unpack command. If the output directory permits writing to privileged system locations, the attacker could place malicious binaries or scripts, resulting in local code execution or potential privilege escalation.

Generated by OpenCVE AI on August 4, 2026 at 12:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to @wakaru/cli v1.4.0 or later to apply the path‑traversal fix.
  • Only run the --unpack option on bundles from trusted, verified sources and perform integrity checks before unpacking.
  • Limit the write permissions of the output directory to a non‑privileged user and consider containment mechanisms such as chroot, containers, or filesystem ACLs to prevent writes to system directories.

Generated by OpenCVE AI on August 4, 2026 at 12:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-7wpj-vvmv-pgm8 @wakaru/cli arbitrary file write during bundle unpack
History

Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Pionxzh
Pionxzh wakaru
Vendors & Products Pionxzh
Pionxzh wakaru

Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description 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.
Title @wakaru/cli arbitrary file write during bundle unpack
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-28T16:09:23.417Z

Reserved: 2026-06-15T19:04:14.455Z

Link: CVE-2026-54545

cve-icon Vulnrichment

Updated: 2026-07-28T16:09:19.972Z

cve-icon NVD

Status : Deferred

Published: 2026-07-28T16:18:59.327

Modified: 2026-07-30T19:16:52.210

Link: CVE-2026-54545

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T13:00:11Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')