goldendict-cc-cedict-content

maintainer jjbeard · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
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-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 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 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