korai

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