goldendict-cc-cedict-content

LOW
maintainer jjbeard 1 votes scanned 2026-11-01 00:21:48.120785
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-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 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