{"id":"CVE-2026-54545","summary":"@wakaru/cli arbitrary file write during bundle unpack","details":"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.","aliases":["GHSA-7wpj-vvmv-pgm8"],"modified":"2026-08-12T03:51:28.981641703Z","published":"2026-07-28T14:43:45.808Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54545.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/pionxzh/wakaru/releases/tag/v1.4.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54545.json"},{"type":"ADVISORY","url":"https://github.com/pionxzh/wakaru/security/advisories/GHSA-7wpj-vvmv-pgm8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54545"},{"type":"FIX","url":"https://github.com/pionxzh/wakaru/commit/1d30383b20a6f768786b8ada2f1b0945de13c316"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pionxzh/wakaru","events":[{"introduced":"398852d84fbcbbf75759128d44619d8bc09e2424"},{"fixed":"1d30383b20a6f768786b8ada2f1b0945de13c316"},{"fixed":"62fee836402487a7581f571dbea41e7cd50532eb"}],"database_specific":{"extracted_events":[{"introduced":"1.0.0"},{"fixed":"1.4.0"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v1.3.0","v1.2.0","v1.1.0","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54545.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"}]}