{"id":"CVE-2026-54545","aliases":["CVE-2026-54545","GHSA-7wpj-vvmv-pgm8"],"related":[],"kind":"vulnerability","state":"published","title":"@wakaru/cli arbitrary file write during bundle unpack","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`@wakaru/cli` is vulnerable to arbitrary file write when unpacking a crafted JavaScript bundle with `--unpack`.\n\nBundle-controlled module filenames were sanitized before writing extracted modules to the output directory. A crafted filename containing overlapping path traversal characters, such as `....//`, could be transformed into `../` after sanitization. This allowed the final output path to escape the intended output directory.\n\nAn attacker who can cause a user to run `wakaru --unpack` on a malicious bundle may be able to write files outside the selected output directory. Depending on the target path and user environment, this may lead to code execution.\n\nAffected versions: `>=1.0.0 <1.4.0`.\n\n### Patches\n\nThe issue has been patched in `@wakaru/cli@1.4.0`.\n\nUsers should upgrade to:\n\n```sh\nnpm install @wakaru/cli@latest\n```\n\nor specifically:\n```\nnpm install @wakaru/cli@1.4.0\n```\n\n### Workarounds\n\nDo not run `wakaru --unpack` on untrusted or unknown bundles with affected versions.\n\nIf upgrading immediately is not possible, avoid using `--unpack on files that may be attacker-controlled.","format":"markdown","source":"ghsa"},{"lang":"es","text":"wakaru es un conjunto de herramientas de descompilación y desminificación de JavaScript. Desde la versión 1.0.0 hasta la 1.4.0, @wakaru/cli sanea los nombres de archivo de módulos controlados por el paquete solo una vez antes de escribir los módulos extraídos, de modo que un nombre de archivo manipulado que contiene secuencias de recorrido superpuestas como .... / / se colapsa a .. /  después del saneamiento y permite que la ruta de salida final escape del directorio de salida seleccionado, permitiendo a un atacante que puede hacer que un usuario ejecute wakaru --unpack en un paquete malicioso escribir archivos fuera de ese directorio y, dependiendo de la ruta de destino y el entorno, potencialmente lograr la ejecución de código. Este problema está solucionado en @wakaru/cli 1.4.0.","source":"nvd"}],"published":"2026-07-28T14:43:45.808Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 1.0.0, < 1.4.0","status":"affected"}],"vendor":"pionxzh","product":"wakaru","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.4.0"}],"ecosystem":"npm","package":"@wakaru/cli","purl":"pkg:npm/%40wakaru/cli","source":"ghsa"}],"references":[{"url":"https://github.com/pionxzh/wakaru/security/advisories/GHSA-7wpj-vvmv-pgm8","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pionxzh/wakaru/commit/1d30383b20a6f768786b8ada2f1b0945de13c316","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pionxzh/wakaru/releases/tag/v1.4.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pionxzh/wakaru","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-28T16:09:11.183Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54545","url":"https://www.cve.org/CVERecord?id=CVE-2026-54545","licence":"CVE Terms of Use","modified":"2026-07-28T16:09:23.417Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7wpj-vvmv-pgm8","url":"https://github.com/advisories/GHSA-7wpj-vvmv-pgm8","licence":"CC-BY-4.0","modified":"2026-07-28T15:11:50.880Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54545","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54545","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.342Z","epss":{"score":0.00149,"percentile":0.04332,"date":"2026-12-01T12:00:22.000Z"}}