# internetarchive Vulnerable to Directory Traversal in File.download()

Advisory record · `GHSA-wx3r-v6h7-frjp`

- **Identifiers:** `GHSA-wx3r-v6h7-frjp` · `CVE-2025-58438` · `PYSEC-2026-357`
- **State:** Confirmed
- **Severity:** CVSS 9.4 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-22](https://cwe.mitre.org/data/definitions/22.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Published:** 5 Sept 2025
- **Updated:** 27 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 5 Sept 2025, 21:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.4: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `internetarchive` (PyPI): affected `<5.5.1`; fixed in `5.5.1`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The internetarchive Python library is vulnerable to directory traversal in its File.download() method in versions before 5.5.1. The source says a crafted filename containing path traversal sequences or illegal characters could cause a file to be written outside the intended directory, which may lead to overwriting system or configuration files. The source does not state what access the attacker needs. Upgrade to internetarchive 5.5.1 or later, as no workaround other than upgrading is recommended.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.4 Critical, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.016, the 76th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:07 UTC: First seen by agentprime
- 31 Oct 2026, 14:07 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-wx3r-v6h7-frjp)

## Sources

- [GitHub Advisory Database: GHSA-wx3r-v6h7-frjp](https://github.com/advisories/GHSA-wx3r-v6h7-frjp)
- [OSV: GHSA-wx3r-v6h7-frjp](https://osv.dev/vulnerability/GHSA-wx3r-v6h7-frjp)
- <https://github.com/jjjake/internetarchive/security/advisories/GHSA-wx3r-v6h7-frjp>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58438>
- <https://github.com/jjjake/internetarchive/commit/cba2d459e10a9489fb35caeba0b03e80f5f5d7c2>
- <https://github.com/jjjake/internetarchive>
- <https://github.com/jjjake/internetarchive/releases/tag/v5.5.1>
- <https://github.com/pypa/advisory-database/tree/main/vulns/internetarchive/PYSEC-2026-357.yaml>
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00030.html>
- <https://pypi.org/project/internetarchive>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-wx3r-v6h7-frjp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-wx3r-v6h7-frjp/>. Everything for agents: <https://agentprime.io/llms.txt>.
