paragraph-editor-git

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

The npm install and npx execution are part of building the project from source and use declared dependencies; the package installs only built assets 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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The npm install and npx execution are part of building the project from source and use declared dependencies; the package installs only built assets and does not execute untrusted remote code.

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:78 NODE_ENV=development npm add -D @electron-forge/plugin-local-electron
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:90 NODE_ENV=production npx vite build

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=paragraph-editor-git
3_pkgname=Paragraph
4pkgver=r12.41c404a
5_electronversion=30
6_nodeversion=22
7pkgrel=1
8pkgdesc="Text editor focused on story creation tools.(Use system-wide electron)"
9arch=('any')
10url="https://github.com/emanoelhenrick/Paragraph"
11license=('Unlicense')
12conflicts=("${pkgname%-git}")
13provides=("${pkgname%-git}=${pkgver%.r*}")
14depends=(
15 "electron${_electronversion}"
16)
17makedepends=(
18 'gendesk'
19 'npm'
20 'nvm'
21 'git'
22 'curl'
23)
24source=(
25 "${pkgname%-git}.git::git+${url}"
26 "${pkgname%-git}.sh"
27)
28sha256sums=('SKIP'
29 '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
30pkgver() {
31 cd "${srcdir}/${pkgname%-git}.git"
32 set -o pipefail
33 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
34 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
35}
36_ensure_local_nvm() {
37 local NVM_DIR="${srcdir}/.nvm"
38 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
39 nvm install "${_nodeversion}"
40 nvm use "${_nodeversion}"
41}
42prepare() {
43 cd "${srcdir}/${pkgname%-git}.git"
44 sed -i -e "
45 s/@electronversion@/${_electronversion}/g
46 s/@appname@/${pkgname%-git}/g
47 s/@runname@/app.asar/g
48 s/@cfgdirname@/${_pkgname}/g
49 s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
50 " "${srcdir}/${pkgname%-git}.sh"
51 _ensure_local_nvm
52 gendesk -q -f -n \
53 --pkgname="${pkgname%-git}" \
54 --pkgdesc="${pkgdesc}" \
55 --categories="Utility" \
56 --name="${pkgname%-git}" \
57 --exec="${pkgname%-git} %U"
58 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
59 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
60 HOME="${srcdir}/.electron-gyp"
61 {
62 echo -e '\n'
63 #echo 'build_from_source=true'
64 echo "cache=${srcdir}/.npm_cache"
65 echo "maxsockets=10"
66 } >> .npmrc
67 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
68 {
69 echo 'registry=https://registry.npmmirror.com'
70 echo 'electron_mirror=https://registry.npmmirror.com/-/binary/electron/'
71 echo 'electron_builder_binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/'
72 } >> .npmrc
73 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
74 fi
75 sed -i "s/require/import/g" tailwind.config.js
76 sed -i "s/\"electron\": \"[^\"]*\"/\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"/g" package.json
77 NODE_ENV=development npm install
78 NODE_ENV=development npm add -D @electron-forge/plugin-local-electron
79}
80build() {
81 cd "${srcdir}/${pkgname%-git}.git"
82 local electronDist="/usr/lib/electron${_electronversion}"
83 sed -i "/^[[:space:]]*plugins:[[:space:]]*\[.*\$/a\\
84 {\\
85 name: \"@electron-forge/plugin-local-electron\",\\
86 config: {\\
87 electronPath: \'${electronDist}\',\\
88 },\\
89 }," forge.config.*
90 NODE_ENV=production npx vite build
91 NODE_ENV=production npm run package
92}
93package() {
94 install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
95 install -Dm644 "${srcdir}/${pkgname%-git}.git/out/${pkgname%-git}-linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname%-git}"
96 install -Dm644 "${srcdir}/${pkgname%-git}.git/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
97 install -Dm644 "${srcdir}/${pkgname%-git}.git/public/electron-vite.svg" \
98 "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-git}.svg"
99}

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