bonbon-browser-git

LOW
maintainer zxp19821005 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The flagged npm and npx usage installs only declared development dependencies and runs project-local scripts to build the application, which is a normal part of building a Node.js/Electron project from source; no untrusted remote code execution occurs.

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 90%): The flagged npm and npx usage installs only declared development dependencies and runs project-local scripts to build the application, which is a normal part of building a Node.js/Electron project from source; no untrusted remote code execution occurs.

2 higher static findings superseded - not the current verdict (shown for transparency)
Medium npm/yarn/pnpm install of an undeclared external package npm_install_external

Runs `npm/yarn/pnpm install <package>` for a package not in source=(), pulling unpinned, unreviewed code at build time. Severity downgraded: the package declares/looks like a Node.js consumer, where build-time installs are expected.

  • PKGBUILD:72 s/npm install/NODE_ENV=development npm install/g
  • PKGBUILD:75 NODE_ENV=development npm add -D ts-node husky rimraf
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:81 NODE_ENV=production npx ts-node ./.erb/scripts/clean.js dist

PKGBUILD

3 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=bonbon-browser-git
3_pkgname=BonBon
4pkgver=1.0.7.r0.g42936ad
5_electronversion=32
6_nodeversion=20
7pkgrel=1
8pkgdesc="A lightweight and innovative browser.It makes you appreciate your browsing experience, and offers privacy.(Use system-wide electron)"
9arch=('any')
10url="https://bonbon.exchange/"
11_ghurl="https://github.com/BonBon-exchange/bonbon-browser"
12license=('GPL-3.0-only')
13conflicts=("${pkgname%-git}")
14provides=("${pkgname%-git}=${pkgver%.r*}")
15depends=(
16 "electron${_electronversion}"
17)
18makedepends=(
19 'gendesk'
20 'npm'
21 'nvm'
22 'curl'
23 'git'
24)
25source=(
26 "${pkgname%-git}.git::git+${_ghurl}.git"
27 "${pkgname%-git}.sh"
28)
29sha256sums=('SKIP'
30 '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
31pkgver() {
32 cd "${srcdir}/${pkgname%-git}.git"
33 set -o pipefail
34 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
35 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
36}
37_ensure_local_nvm() {
38 local NVM_DIR="${srcdir}/.nvm"
39 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
40 nvm install "${_nodeversion}"
41 nvm use "${_nodeversion}"
42}
43prepare() {
44 sed -i -e "
45 s/@electronversion@/${_electronversion}/
46 s/@appname@/${pkgname%-git}/
47 s/@runname@/app.asar/
48 s/@cfgdirname@/${pkgname%-git}/
49 s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/
50 " "${srcdir}/${pkgname%-git}.sh"
51 _ensure_local_nvm
52 gendesk -f -n -q --pkgname="${pkgname%-git}" --pkgdesc="${pkgdesc}" --categories="Network" --name="${_pkgname}" --exec="${pkgname%-git} %U"
53 cd "${srcdir}/${pkgname%-git}.git"
54 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
55 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
56 HOME="${srcdir}/.electron-gyp"
57 {
58 echo -e '\n'
59 #echo 'build_from_source=true'
60 echo "cache=${srcdir}/.npm_cache"
61 } >> .npmrc
62 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
63 {
64 echo 'registry=https://registry.npmmirror.com'
65 echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
66 echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
67 } >> .npmrc
68 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
69 fi
70 find src -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-git}\'/g" {} \;
71 sed -i -e "
72 s/npm install/NODE_ENV=development npm install/g
73 s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g
74 " package.json
75 NODE_ENV=development npm add -D ts-node husky rimraf
76 NODE_ENV=development npm install --legacy-peer-deps
77}
78build() {
79 cd "${srcdir}/${pkgname%-git}.git"
80 local electronDist="/usr/lib/electron${_electronversion}"
81 NODE_ENV=production npx ts-node ./.erb/scripts/clean.js dist
82 NODE_ENV=production npm run build
83 NODE_ENV=production npm exec -c "electron-builder build --linux dir -c.electronDist=${electronDist}"
84}
85package() {
86 install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
87 install -Dm644 "${srcdir}/${pkgname%-git}.git/release/build/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname%-git}"
88 cp -Pr --no-preserve=ownership "${srcdir}/${pkgname%-git}.git/release/build/linux-"*/resources/{app.asar.unpacked,assets,node_modules} "${pkgdir}/usr/lib/${pkgname%-git}"
89 install -Dm644 "${srcdir}/${pkgname%-git}.git/assets/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.png"
90 install -Dm644 "${srcdir}/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
91 install -Dm644 "${srcdir}/${pkgname%-git}.git/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
92}

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 3
2026-09-16 00:03:17 Low 3
2026-09-15 00:25:31 Low 3
2026-09-14 00:27:57 Low 3
2026-09-13 00:19:54 Low 3
2026-09-12 00:25:17 Low 3
2026-09-11 00:19:22 Low 3
2026-09-10 00:22:44 Low 3
2026-09-09 00:04:09 Low 3
2026-09-08 00:18:08 Low 3
2026-09-07 00:30:15 Low 3
2026-09-06 00:17:06 Low 3
2026-09-05 00:16:27 Low 3
2026-09-04 00:03:13 Low 3
2026-09-03 00:15:47 Low 3
2026-09-02 00:02:31 Low 3
2026-09-01 00:11:19 Low 3
2026-08-31 00:19:57 Low 3
2026-08-30 00:04:14 Low 3
2026-08-29 00:29:17 Low 3

Report a package

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

0 / 4000
Your suggestion