goldendict-cc-cedict-content

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

The package downloads a plain text dictionary file from the official mdbg.net site, which is the legitimate source for CC-CEDICT;虽非白名单主机但数据非可执行内容,最坏情况为数据篡改,无远程代码执行风险

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 package downloads a plain text dictionary file from the official mdbg.net site, which is the legitimate source for CC-CEDICT;虽非白名单主机但数据非可执行内容,最坏情况为数据篡改,无远程代码执行风险

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:19 "https://www.mdbg.net/chinese/export/cedict/cedict_1_0_ts_utf-8_mdbg.txt.gz")

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: John Beard <john.j.beard@gmail.com>
2pkgname=goldendict-cc-cedict-content
3pkgver=1.0_r20230506
4pkgrel=1
5pkgdesc="CC-CEDICT Chinese-English Dictionary for Goldendict"
6arch=("any")
7url="https://www.mdbg.net/chinese/dictionary?page=cedict"
8license=("custom:cc-by-sa-4.0" "custom")
9install=$pkgname.install
10optdepends=(
11"goldendict: for using this dictionary"
12"goldendict-git: for using this dictionary"
13)
14makedepends=(
15"pyglossary"
16)
17source=("cc-cedict.png"
18"LICENSE"
19"https://www.mdbg.net/chinese/export/cedict/cedict_1_0_ts_utf-8_mdbg.txt.gz")
20md5sums=('729e16b892fb38a6d1c5853330191e93'
21 '747cb41a7c6ddb22a508164f768dae2a'
22 'SKIP')
23
24_extractedFile="cedict.txt"
25
26prepare() {
27
28 cd "${srcdir}"
29
30 gzip -d -c cedict*.txt.gz > ${_extractedFile}
31}
32
33pkgver() {
34
35 cd "${srcdir}"
36
37 version=$(grep -m 100 '#! version' ${_extractedFile} | cut -d'=' -f2 | tr -d '\r\n')
38 subversion=$(grep -m 100 '#! subversion' ${_extractedFile} | cut -d= -f2 | tr -d '\r\n')
39 datecode=$(grep -m 100 '#! date' ${_extractedFile} | cut -d= -f2 | cut -dT -f1 | tr -d '\r\n-')
40
41 verstr="${version}.${subversion}_r${datecode}"
42
43 echo -n "${verstr}"
44}
45
46build() {
47
48 cd "${srcdir}"
49
50 # convert to Stardict format
51 pyglossary ${_extractedFile} cc-cedict.ifo\
52 --read-format=CC-CEDICT --write-format=Stardict
53
54 # update the bookname: this is what GoldenDict will display as the dictionary name
55 sed -i 's/bookname=.*/bookname=CC-CEDICT/' cc-cedict.ifo
56
57 # the .ifo version field is the Stardict format version, _not_ the dictionary version
58
59 # zip the dict file to save installation space
60 # gzip -c cc-cedict.dict > cc-cedict.dict.dz
61}
62
63
64
65package() {
66 TARGET="/usr/share/goldendict"
67 contentdir="${pkgdir}${TARGET}/content/cc-cedict"
68
69 install -dm 755 ${contentdir}
70
71 install -Dm 644 ${srcdir}/cc-cedict.{syn,ifo,dict,idx} ${contentdir}
72 install -Dm 644 cc-cedict.png ${contentdir}
73
74 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
75}
76
77

Scan history

Scanned at (UTC)SeverityRules
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 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 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
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 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