cursor-bin

MEDIUM
maintainer g.schulz 95 votes scanned 2026-09-17 07:25:15.887874
View on AUR
Why flagged

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

Triggered rules

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=("https://downloads.cursor.com/production/${_commit}/linux/x64/deb/amd64/deb/cursor_${pkgver}_amd64.deb"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Gunther Schulz <dev@guntherschulz.de>
2
3pkgname=cursor-bin
4pkgver=3.20.21
5pkgrel=1
6pkgdesc='AI-first coding environment'
7arch=('x86_64')
8url="https://www.cursor.com"
9license=('LicenseRef-Cursor_EULA')
10# upstream uses Electron newer than internal VSCode
11_electron=electron42
12depends=(xdg-utils ripgrep $_electron nodejs
13 'gcc-libs' 'hicolor-icon-theme' 'libxkbfile')
14options=(!strip !debug) # Don't break ext of VSCode
15_commit=f09fca384ceca23f7bf21f9c23655b162641d747
16source=("https://downloads.cursor.com/production/${_commit}/linux/x64/deb/amd64/deb/cursor_${pkgver}_amd64.deb"
17"https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/raw/main/code."{sh,mjs}
18rg.sh)
19sha512sums=('SKIP'
20 '937299c6cb6be2f8d25f7dbc95cf77423875c5f8353b8bd6cd7cc8e5603cbf8405b14dbf8bd615db2e3b36ed680fc8e1909410815f7f8587b7267a699e00ab37'
21 '793f9ff6306e3992ac89802d98110cba288ea1181a901467333293b7d76182ef9792c2a39ff49d9347a18a174b1f42bc58862091dff583f4146c2704eea28033'
22 'e79fe7659f59d1ae02fc68816399bfd31587315df6cdb6ccf1d0ca76f7cdc692c2a42b30591c0091147bd97ef14b1c7745dc26bd7cb3ea6bba45698e5044fa2a')
23sha512sums[0]=8329138d207309d16410f1cb58da18eea1a034a35f2bdd022ef9b373bb8f1b3d80e489e65256b7283c40e10da77962d158bfa3a64e742337a942633810d80dbe
24noextract=(cursor_${pkgver}_amd64.deb) # avoid double tarball
25_app=usr/share/cursor/resources/app
26package() {
27 # Exclude electron
28 bsdtar -xOf ${noextract[0]} data.tar.xz | tar -xJf - -C "$pkgdir" \
29 --exclude 'usr/share/cursor/[^r]*' --exclude 'usr/share/cursor/*.pak'
30 cd "$pkgdir"
31 mv usr/share/zsh/{vendor-completions,site-functions}
32 ln -sf /usr/bin/node ${_app}/resources/helpers/node
33 install -Dm755 "${srcdir}/rg.sh" ${_app}/node_modules/@vscode/ripgrep/bin/rg
34 ln -sf /usr/bin/xdg-open ${_app}/node_modules/open/xdg-open
35 sed -e "1s|.*|#!/usr/lib/${_electron}/electron|" \
36 -e "s|code-oss|cursor|g" -e "s|code.mjs|cursor.mjs|g" \
37 "${srcdir}"/code.mjs | install -Dm644 /dev/stdin "${pkgdir}/${_app}/cursor.mjs"
38 sed -e "s|code-flags|cursor-flags|" -e "s|/usr/lib/code|/${_app}|" -e "s|/usr/lib/code/code.mjs|/${_app}/cursor.mjs|" \
39 -e "s|name=electron|name=${_electron}|" "${srcdir}"/code.sh | install -Dm755 /dev/stdin "${pkgdir}"/usr/share/cursor/cursor
40 install -d "$pkgdir"/usr/bin
41 ln -sf /usr/share/cursor/cursor "$pkgdir"/usr/bin/cursor
42}
43

Changes since previous scan

--- PKGBUILD @ 2026-09-13 00:19
+++ PKGBUILD @ 2026-09-17 07:25
@@ -1,7 +1,7 @@
# Maintainer: Gunther Schulz <dev@guntherschulz.de>
pkgname=cursor-bin
-pkgver=3.20.15
+pkgver=3.20.21
pkgrel=1
pkgdesc='AI-first coding environment'
arch=('x86_64')
@@ -12,7 +12,7 @@
depends=(xdg-utils ripgrep $_electron nodejs
'gcc-libs' 'hicolor-icon-theme' 'libxkbfile')
options=(!strip !debug) # Don't break ext of VSCode
-_commit=6691559b11c7056a0c0cbd75aa399b6ffed8c5bc
+_commit=f09fca384ceca23f7bf21f9c23655b162641d747
source=("https://downloads.cursor.com/production/${_commit}/linux/x64/deb/amd64/deb/cursor_${pkgver}_amd64.deb"
"https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/raw/main/code."{sh,mjs}
rg.sh)
@@ -20,7 +20,7 @@
'937299c6cb6be2f8d25f7dbc95cf77423875c5f8353b8bd6cd7cc8e5603cbf8405b14dbf8bd615db2e3b36ed680fc8e1909410815f7f8587b7267a699e00ab37'
'793f9ff6306e3992ac89802d98110cba288ea1181a901467333293b7d76182ef9792c2a39ff49d9347a18a174b1f42bc58862091dff583f4146c2704eea28033'
'e79fe7659f59d1ae02fc68816399bfd31587315df6cdb6ccf1d0ca76f7cdc692c2a42b30591c0091147bd97ef14b1c7745dc26bd7cb3ea6bba45698e5044fa2a')
-sha512sums[0]=7c3cb5cd7506520eefd74665ae915d4b95a293d04b8e34515dfdb981390491101091853ae2c837bcad5b85fe65cacba5c8eb2168e84a158eba7b44028f6bab56
+sha512sums[0]=8329138d207309d16410f1cb58da18eea1a034a35f2bdd022ef9b373bb8f1b3d80e489e65256b7283c40e10da77962d158bfa3a64e742337a942633810d80dbe
noextract=(cursor_${pkgver}_amd64.deb) # avoid double tarball
_app=usr/share/cursor/resources/app
package() {

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 07:25:15 Medium 1
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 21:15:24 Medium 1
2026-09-13 00:19:54 Low 2
2026-09-12 09:11:25 Medium 1
2026-09-12 05:10:45 Medium 1
2026-09-12 01:24:32 Medium 1
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 23:21:28 Medium 1
2026-09-10 09:20:32 Medium 1
2026-09-10 00:22:44 Medium 2
2026-09-09 05:18:57 Medium 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

Report a package

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

0 / 4000
Your suggestion