{"id":"GHSA-7wpj-vvmv-pgm8","revision":"726725eac5224db7997db09364811468","records":[{"revision":"726725eac5224db7997db09364811468","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-7wpj-vvmv-pgm8","aliases":["CVE-2026-54545"],"title":"@wakaru/cli arbitrary file write during bundle unpack","description":"### 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.","state":0,"publishedAt":"2026-07-28T14:44:01+00:00","modifiedAt":"2026-07-28T15:11:50.880711+00:00","affected":[{"ecosystem":"npm","name":"@wakaru/cli","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.0.0"},{"kind":"fixed","version":"1.4.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/pionxzh/wakaru/security/advisories/GHSA-7wpj-vvmv-pgm8","https://github.com/pionxzh/wakaru/commit/1d30383b20a6f768786b8ada2f1b0945de13c316","https://github.com/pionxzh/wakaru","https://github.com/pionxzh/wakaru/releases/tag/v1.4.0"],"sourceUrl":"https://github.com/advisories/GHSA-7wpj-vvmv-pgm8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7wpj-vvmv-pgm8","identifiers":["GHSA-7wpj-vvmv-pgm8","CVE-2026-54545"]},"retained":false,"historicalAffected":[]}],"coverage":[]}