Vulnerabilities in pkg:pypi/archivebox

PACKAGE
Advisory Identifier: GHSA-cr45-98w9-gwqx
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/archivebox

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/archivebox. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-cr45-98w9-gwqx CVE-2023-45815 HIGH Viewing wget extractor output while logged in as an admin allows archived JS to execute in the admins context
GHSA-3h23-7824-pj8r CVE-2026-42601 CRITICAL ArchiveBox Vulnerable to RCE via unvalidated per-crawl config overrides in AddView

CVE-2023-45815 at a Glance

CVE Identifier CVE-2023-45815
GHSA Identifier GHSA-cr45-98w9-gwqx
Severity HIGH
CVSS v3.1 Base Score 6.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Archivebox
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

archivebox fixed: 0.9.0
pip install archivebox>=0.9.0
Verify Direct and Transitive Dependencies

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

Related issue & discussion: - https://github.com/ArchiveBox/ArchiveBox/issues/239 - https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview#publishing - https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#security-concerns ### Impact Any users who save untrusted URLs and view the content they output. 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 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. The 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. Because 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. ### Patches Follow here for progress on mitigating this issue: https://github.com/ArchiveBox/ArchiveBox/issues/239 ### Workarounds Disable 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. ### References - https://en.wikipedia.org/wiki/Cross-site_request_forgery - https://github.com/ArchiveBox/ArchiveBox#caveats - https://github.com/ArchiveBox/ArchiveBox/wiki/Security-Overview - https://github.com/ArchiveBox/ArchiveBox/wiki/Publishing-Your-Archive#security-concerns

CVE-2023-45815 Affected Archivebox Versions

1 component(s)
Fixed Versions:
0.9.0
Product / Package Ecosystem Affected Versions Fixed Version
archivebox
PyPI
< 0.9.0
0.9.0

References

Frequently Asked Questions

What is CVE-2023-45815?
CVE-2023-45815 is a security vulnerability in Archivebox involving Viewing wget extractor output while logged in as an admin allows archived JS to execute in the admins context under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Archivebox versions are affected?
Affected versions include releases prior to 0.9.0 across affected packages: archivebox.
What version fixes CVE-2023-45815?
Upgrading to 0.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is archivebox affected?
Yes, archivebox is affected in releases prior to 0.9.0. Upgrade your dependency to 0.9.0 or later.
What is the CVSS score of CVE-2023-45815?
CVE-2023-45815 has a CVSS v3.1 base score of 6.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-45815?
CVE-2023-45815 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check PyPI dependencies for CVE-2023-45815?
Run the dependency tree command: 'pip show archivebox'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}