cursor-cli
maintainer orphaned
· 4 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a source tarball from the project's official domain (downloads.cursor.com) for building, which is a normal and trusted practice; the non-whitelisted host is the project's own release infrastructure, and the download is verified via b2sum.
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 package downloads a source tarball from the project's official domain (downloads.cursor.com) for building, which is a normal and trusted practice; the non-whitelisted host is the project's own release infrastructure, and the download is verified via b2sum.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:16
source_x86_64=("cursor-cli-${_upstream_ver}-x86_64.tar.gz::https://downloads.cursor.com/lab/${_upstream_ver}/linux/x64/agent-cli-package.tar.gz")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Christopher Cooper <christopher@cg505.com>
2
pkgname=cursor-cli
3
# extracted from https://cursor.com/install (managed by 'update-pkgver.sh')
4
_upstream_ver='2026.07.23-e383d2b'
5
# Baseline pkgver; update using './update-pkgver.sh'
6
pkgver=2026.07.23.1.e383d2b
7
pkgrel=1
8
epoch=1
9
pkgdesc="Cursor Agent CLI - AI-powered code assistant"
10
arch=('x86_64' 'aarch64')
11
url="https://cursor.com"
12
license=('LicenseRef-Cursor')
13
depends=('gcc-libs' 'bash' 'glibc' 'nodejs' 'ripgrep')
14
install=cursor-cli.install
15
source=('Cursor-TOS')
16
source_x86_64=("cursor-cli-${_upstream_ver}-x86_64.tar.gz::https://downloads.cursor.com/lab/${_upstream_ver}/linux/x64/agent-cli-package.tar.gz")
17
source_aarch64=("cursor-cli-${_upstream_ver}-aarch64.tar.gz::https://downloads.cursor.com/lab/${_upstream_ver}/linux/arm64/agent-cli-package.tar.gz")
18
b2sums=('7079c023e03ea4d78b067ed0f22b5cc1982c306721b2ea6be3c7f73bbbe0e8f05b148fd6571902b838464ee80a787ef7be73135c622f0a4fdb16c38429ced8d6')
19
b2sums_x86_64=('98df7f3d41efd1178a114aef6beeeb00dfc8b33a592e9b699c4eaa6df530f9b85d37fecd818c175d7b1aa6f7543c35dc3d42c8899087ba0d211bcf747333316d')
20
b2sums_aarch64=('71f0df95054f168a324f7bd57ae9850504f8bd0293e0620cf193de8729ef97a127f90e7e60ceb83e5908883cb412a448cc3e1600aeba3fe060bc0afded4e7853')
21
22
package() {
23
# Create necessary directories
24
install -dm755 "${pkgdir}/opt/cursor-agent"
25
install -dm755 "${pkgdir}/usr/bin"
26
27
# Copy all files from the extracted package
28
cp -r "${srcdir}"/dist-package/* "${pkgdir}/opt/cursor-agent/"
29
30
# Replace node and rg with system versions
31
ln -sf "/usr/bin/node" "${pkgdir}/opt/cursor-agent/node"
32
ln -sf "/usr/bin/rg" "${pkgdir}/opt/cursor-agent/rg"
33
34
# Patch cursor-agent script to block auto-updates
35
sed -i '/^NODE_BIN=/a\
36
# Block cursor-agent auto-updates\
37
mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}/cursor-agent/versions"\
38
chmod -x "${XDG_DATA_HOME:-$HOME/.local/share}/cursor-agent/versions"' "${pkgdir}/opt/cursor-agent/cursor-agent"
39
40
# Create symlink in /usr/bin
41
ln -s "/opt/cursor-agent/cursor-agent" "${pkgdir}/usr/bin/cursor-agent"
42
43
# Install license
44
# This is downloaded from https://cursor.com/terms-of-service
45
install -Dm644 Cursor-TOS "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
46
}
47
Changes since previous scan
--- PKGBUILD @ 2026-06-19 19:07+++ PKGBUILD @ 2026-08-03 00:08@@ -1,9 +1,9 @@ # Maintainer: Christopher Cooper <christopher@cg505.com> pkgname=cursor-cli # extracted from https://cursor.com/install (managed by 'update-pkgver.sh')-_upstream_ver='2026.05.24-dda726e'+_upstream_ver='2026.07.23-e383d2b' # Baseline pkgver; update using './update-pkgver.sh'-pkgver=2026.05.24.1.dda726e+pkgver=2026.07.23.1.e383d2b pkgrel=1 epoch=1 pkgdesc="Cursor Agent CLI - AI-powered code assistant"@@ -16,8 +16,8 @@ source_x86_64=("cursor-cli-${_upstream_ver}-x86_64.tar.gz::https://downloads.cursor.com/lab/${_upstream_ver}/linux/x64/agent-cli-package.tar.gz") source_aarch64=("cursor-cli-${_upstream_ver}-aarch64.tar.gz::https://downloads.cursor.com/lab/${_upstream_ver}/linux/arm64/agent-cli-package.tar.gz") b2sums=('7079c023e03ea4d78b067ed0f22b5cc1982c306721b2ea6be3c7f73bbbe0e8f05b148fd6571902b838464ee80a787ef7be73135c622f0a4fdb16c38429ced8d6')-b2sums_x86_64=('1a386eb3b083226e53a13cfe89264db29b6225657bf1f0d3b8cc3ce3244688301edebb0e471fa5183bfb9a2626597a8b55fe8c9fa234ea35cb633679ed7e3596')-b2sums_aarch64=('5faaa1ee28170b664c7ba7a2872f4cbf6ac34cd442ec075c687d772670a7b627ce8f0c5af8343909e4ad3ccb1176c199cc66155053a2543d36773083ad1f4736')+b2sums_x86_64=('98df7f3d41efd1178a114aef6beeeb00dfc8b33a592e9b699c4eaa6df530f9b85d37fecd818c175d7b1aa6f7543c35dc3d42c8899087ba0d211bcf747333316d')+b2sums_aarch64=('71f0df95054f168a324f7bd57ae9850504f8bd0293e0620cf193de8729ef97a127f90e7e60ceb83e5908883cb412a448cc3e1600aeba3fe060bc0afded4e7853') package() { # Create necessary directoriesScan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 19:16:23 | MEDIUM | 1 |
| 2026-06-19 19:07:35 | CLEAN | 2 |
| 2026-06-18 16:11:54 | MEDIUM | 1 |