CVE-2023-45815: Archivebox Viewing Wget Extractor Output While Vulnerability
HIGHCVE-2023-45815 is a HIGH (CVSS 6.4) viewing wget extractor output while vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Archivebox libraries in the PyPI ecosystem. The issue involves viewing wget extractor output while logged in as an admin allows archived js to execute in the admins context. Remediation is available by upgrading affected packages to version 0.9.0.
CVE-2023-45815 at a Glance
Security Impact
CVSS: 6.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N).
How to Fix CVE-2023-45815
To remediate this vulnerability, upgrade all affected Archivebox dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install archivebox>=0.9.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show archivebox
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-45815, inspect your installed packages using pip:
pip show archivebox
Analyze the terminal output to locate any version of Archivebox in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.0), your application is affected.
Note: The pip show archivebox command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Archivebox, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-45815 Affected Archivebox Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
archivebox
|
PyPI |
< 0.9.0
|
0.9.0
|
References
Frequently Asked Questions
What is CVE-2023-45815?
Which Archivebox versions are affected?
What version fixes CVE-2023-45815?
Is archivebox affected?
What is the CVSS score of CVE-2023-45815?
What CWE is associated with CVE-2023-45815?
How can I check PyPI dependencies for CVE-2023-45815?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cr45-98w9-gwqx",
"modified" : "2026-07-07T13:06:54Z",
"published" : "2023-10-19T16:13:50Z",
"aliases" : [ "CVE-2023-45815" ],
"summary" : "Viewing wget extractor output while logged in as an admin allows archived JS to execute in the admins context",
"details" : "Related issue & discussion:\n\n- https://github.com/ArchiveBox/ArchiveBox/issues/239\n- https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview#publishing\n- https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#security-concerns\n\n### Impact\n\nAny users who save untrusted URLs and view the content they output.\n\nThe 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 JS 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. \n\nThe impact is less severe for non-logged-in users, as malicious JS cannot *modify* any archives, but it can still *read* all the other archived content by fetching the snapshot index and iterating through it.\n\nBecause all of ArchiveBox's archived content is served from the same host and port as the admin panel with 0 XSS protections, 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.\n\n### Patches\n\nFollow here for progress on mitigating this issue: https://github.com/ArchiveBox/ArchiveBox/issues/239\n\n### Workarounds\n\nDisable the risky extractors by setting [`archivebox config --set SAVE_WGET=False SAVE_DOM=False`](https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration#save_wget), 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.\n\n### References\n\n- https://en.wikipedia.org/wiki/Cross-site_request_forgery\n- https://github.com/ArchiveBox/ArchiveBox#caveats\n- https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview\n- https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#security-concerns",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "archivebox"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ArchiveBox/ArchiveBox/security/advisories/GHSA-cr45-98w9-gwqx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-45815"
}, {
"type" : "WEB",
"url" : "https://github.com/ArchiveBox/ArchiveBox/issues/239"
}, {
"type" : "WEB",
"url" : "https://github.com/ArchiveBox/ArchiveBox/pull/1773"
}, {
"type" : "WEB",
"url" : "https://github.com/ArchiveBox/ArchiveBox/commit/a6548df8d0aae1d3d326deb1191b128232708166"
}, {
"type" : "WEB",
"url" : "https://en.wikipedia.org/wiki/Cross-site_request_forgery"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ArchiveBox/ArchiveBox"
}, {
"type" : "WEB",
"url" : "https://github.com/ArchiveBox/ArchiveBox#caveats"
}, {
"type" : "WEB",
"url" : "https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration#save_wget"
}, {
"type" : "WEB",
"url" : "https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#2-export-and-host-it-as-static-html"
}, {
"type" : "WEB",
"url" : "https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#security-concerns"
}, {
"type" : "WEB",
"url" : "https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/archivebox/PYSEC-2023-229.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-10-19T16:13:50Z",
"nvd_published_at" : "2023-10-19T22:15:10Z"
}
}