heynote

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

The npx command runs electron-builder on the locally built project, not a remote package; this is a standard part of the build process for Electron apps and does not execute untrusted 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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The npx command runs electron-builder on the locally built project, not a remote package; this is a standard part of the build process for Electron apps and does not execute untrusted 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:34 npx electron-builder --linux dir -c electron-builder.json5 \

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
2pkgname=heynote
3pkgver=2.9.1
4pkgrel=1
5_electronversion=39
6pkgdesc="A dedicated scratchpad for developers"
7arch=('x86_64')
8url="https://heynote.com"
9license=('Commons-Clause-1.0')
10depends=("electron${_electronversion}")
11makedepends=('npm')
12source=("$pkgname-$pkgver.tar.gz::https://github.com/heyman/heynote/archive/refs/tags/v$pkgver.tar.gz"
13 "$pkgname.desktop"
14 "$pkgname.sh")
15sha256sums=('5da83c84a5c2bd6b19acd789029e99d9bac0afb071e37af598a3869964a05655'
16 '22eca2d471190a5c59d3bfc9d95333071a7f63711e89c11991b12ebe068197ad'
17 '01f72b81076197876af162436ce58754ceb35a0f7726f00255bfa55a5936f5ff')
18
19prepare() {
20 cd "$pkgname-$pkgver"
21 export npm_config_cache="$srcdir/npm_cache"
22 npm install
23
24 sed -i "s|@ELECTRONVERSION@|${_electronversion}|" "$srcdir/$pkgname.sh"
25}
26
27build() {
28 cd "$pkgname-$pkgver"
29 export npm_config_cache="$srcdir/npm_cache"
30 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
31 electronDist="/usr/lib/electron${_electronversion}"
32 electronVer="$(sed s/^v// /usr/lib/electron${_electronversion}/version)"
33 npm run prebuild
34 npx electron-builder --linux dir -c electron-builder.json5 \
35 ${dist} -c.electronDist=${electronDist} -c.electronVersion=${electronVer}
36}
37
38package() {
39 cd "$pkgname-$pkgver"
40 install -Dm644 "release/$pkgver/linux-unpacked/resources/app.asar" -t \
41 "$pkgdir/usr/lib/$pkgname/"
42 cp -a "release/$pkgver/linux-unpacked/resources/app.asar.unpacked" -t \
43 "$pkgdir/usr/lib/$pkgname/"
44 install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
45 install -Dm644 "$srcdir/$pkgname.desktop" -t "$pkgdir/usr/share/applications/"
46 install -Dm644 resources/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
47 install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
48}
49

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