musicat

LOW
maintainer zxp19821005 0 votes scanned 2026-09-17 00:27:14.276658
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-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 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