musicat

maintainer zxp19821005 · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The npx command runs 'tauri build' on the locally checked-out project source, which is a standard build step for Tauri applications and does not execute arbitrary remote code.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The npx command runs 'tauri build' on the locally checked-out project source, which is a standard build step for Tauri applications and does not execute arbitrary remote code.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM npx/bunx/deno executes a remote package remote_code_tool

`npx`/`bunx`/`pnpm dlx`/`deno run <url>` downloads AND runs a remote package at build time — the moral equivalent of piping a download into a shell. Severity downgraded: Node.js consumer context.

  • PKGBUILD:60 NODE_ENV=production npx tauri build

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=musicat
3_pkgname=Musicat
4pkgver=0.17.2
5_nodeversion=20
6pkgrel=1
7pkgdesc="A sleek desktop music player and tagger for offline music 🪕 With experimental features like map view, GPT analysis, artist toolkit."
8arch=(
9 'aarch64'
10 'x86_64'
11)
12url="https://github.com/basharovV/musicat"
13license=('GPL-3.0-only')
14conflicts=("${pkgname}")
15depends=(
16 'gtk3'
17 'alsa-lib'
18 'webkit2gtk-4.1'
19)
20makedepends=(
21 'npm'
22 'gendesk'
23 'git'
24 'rust'
25 'curl'
26)
27source=(
28 "${pkgname}-${pkgver}::git+${url}#tag=v${pkgver}"
29)
30sha256sums=('f0c6607d2034a24f8d2f5b2c4ecb83bdc7af4d2c8b48090521ca4253c92f6098')
31_ensure_local_nvm() {
32 local NVM_DIR="${srcdir}/.nvm"
33 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
34 nvm install "${_nodeversion}"
35 nvm use "${_nodeversion}"
36}
37prepare() {
38 cd "${srcdir}/${pkgname}-${pkgver}"
39 _ensure_local_nvm
40 export npm_config_build_from_source=true
41 export npm_config_cache="${srcdir}/.npm_cache"
42 export CARGO_HOME="${srcdir}/.cargo"
43 HOME="${srcdir}/.electron-gyp"
44 export CARGO_HOME="${srcdir}/.cargo"
45 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
46 {
47 echo 'registry=https://registry.npmmirror.com'
48 echo 'disturl=https://registry.npmmirror.com/-/binary/node/'
49 } >> .npmrc
50 export RUSTUP_DIST_SERVER="https://mirrors.ustc.edu.cn/rust-static"
51 export RUSTUP_UPDATE_ROOT="https://mirrors.ustc.edu.cn/rust-static/rustup"
52 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
53 sed "s/github.com/github.moeyy.xyz\/https:\/\/github.com/" -i src-tauri/Cargo.toml
54 fi
55 sed -i 's/targets": "all/targets": "deb/g' src-tauri/tauri.conf.json
56 NODE_ENV=development npm install
57}
58build() {
59 cd "${srcdir}/${pkgname}-${pkgver}"
60 NODE_ENV=production npx tauri build
61}
62package() {
63 install -Dm755 "${srcdir}/${pkgname}-${pkgver}/src-tauri/target/release/bundle/deb/${_pkgname}_${pkgver}_"*/data/usr/bin/"${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
64 for _icons in 32x32 128x128 256x256@2;do
65 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/src-tauri/target/release/bundle/deb/${_pkgname}_${pkgver}_"*/data/usr/share/icons/hicolor/"${_icons}"/apps/"${_pkgname}".png \
66 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png"
67 done
68 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/src-tauri/target/release/bundle/deb/${_pkgname}_${pkgver}_"*/data/usr/share/applications/"${_pkgname}".desktop \
69 "${pkgdir}/usr/share/applications/${pkgname}.desktop"
70 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/src-tauri/target/release/bundle/deb/${_pkgname}_${pkgver}_"*/data/usr/lib/"${_pkgname}"/resources/*.yml \
71 -t "${pkgdir}/usr/lib/${_pkgname}/resources"
72 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
73}
74

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion