korai

maintainer DisableGraphics · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD runs 'pip install --upgrade mangadex-downloader' inside the package() function, which downloads and executes arbitrary Python code from PyPI at build/install time without any version pinning or integrity verification. This is a genuine supply-chain concern: the --upgrade flag means whatever version PyPI serves at that moment is installed, bypassing pacman's dependency tracking and reproducibility guarantees. Additionally, the package installs a .so extension into /home/$USER/.local/share rather than a proper system path, and the sha512sum appears to have an incorrect length (127 hex chars instead of 128), suggesting a possible integrity issue. The pip install is the primary concern — it executes unverified, unpinned external code during packaging, which is a real medium-severity supply-chain risk.

Triggered rules

MEDIUM pip install of an external package pip_install_external

`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.

  • PKGBUILD:48 pip install --upgrade mangadex-downloader
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 85%): The PKGBUILD runs 'pip install --upgrade mangadex-downloader' inside the package() function, which downloads and executes arbitrary Python code from PyPI at build/install time without any version pinning or integrity verification. This is a genuine supply-chain concern: the --upgrade flag means whatever version PyPI serves at that moment is installed, bypassing pacman's dependency tracking and reproducibility guarantees. Additionally, the package installs a .so extension into /home/$USER/.local/share rather than a proper system path, and the sha512sum appears to have an incorrect length (127 hex chars instead of 128), suggesting a possible integrity issue. The pip install is the primary concern — it executes unverified, unpinned external code during packaging, which is a real medium-severity supply-chain risk.

PKGBUILD

1 offending line(s) highlighted
1# Contributor: DisableGraphics elchifladod@gmail.com
2pkgbase="korai"
3pkgname="korai"
4pkgrel=2
5pkgver=0.2.1
6pkgdesc="Fast, reliable and feature-packed manga and comics reader"
7arch=("any")
8url='https://github.com/DisableGraphics/Korai'
9makedepends=("git" "imagemagick")
10depends=("libarchive" "gtkmm3" "webkit2gtk" "vte3" "mangodl")
11conflicts=("korai-git")
12license=("GPL")
13source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
14sha512sums=('2f40b9bbddc3aca79fd6c4c34e78a68eea89bb9fb289f4324636829a0586bb9e8ee15db89fb5faba3ac98b2a2dbf4b474a0b7e93eb24a9da2354af1e3f688964')
15prepare() {
16 cd ${srcdir}/${pkgname^}-${pkgver}
17 make -j$(nproc)
18}
19package() {
20 install -Dm755 ${pkgname^}-${pkgver}/build/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
21 install -Dm755 ${pkgname^}-${pkgver}/build/korai-extensions/savepos.so "${pkgdir}/home/${USER}/.local/share/korai-extensions/savepos.so"
22
23 echo "Converting icon..."
24 convert ${pkgname^}-${pkgver}/src/icon.xpm ${pkgname^}-${pkgver}/src/icon.png
25
26 install -Dm755 ${pkgname^}-${pkgver}/src/icon.png "${pkgdir}/usr/share/icons/korai.png"
27
28 echo "Adding application menu..."
29
30 if [ -f "${pkgname^}-${pkgver}/korai.desktop" ]; then
31 rm -f "${pkgname^}-${pkgver}/korai.desktop"
32 fi
33 touch "${pkgname^}-${pkgver}/korai.desktop"
34 echo "#!/usr/bin/env xdg-open
35 [Desktop Entry]
36 Version=Git
37 Type=Application
38 Name=Korai
39 Comment=\"Fast, reliable and feature-packed manga/comic book reader\"
40 Exec=/usr/bin/korai
41 Icon=/usr/share/icons/korai.png
42 Path=/home/$USER/.local/share
43 Terminal=false
44 StartupNotify=false
45 Categories=Network;" >> "${pkgname^}-${pkgver}/korai.desktop"
46
47 install -Dm755 ${pkgname^}-${pkgver}/korai.desktop "${pkgdir}/usr/share/applications/korai.desktop"
48 pip install --upgrade mangadex-downloader
49 echo "Korai requires mangadex-downloader (only available using pip) to download MangaDex manga directly"
50}
51
52

Scan history

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

Report a package

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

0 / 4000
Your suggestion