Update dependency internetarchive to v5 [SECURITY] #31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==1.8.5→==5.5.1GitHub Vulnerability Alerts
CVE-2025-58438
Impact
What kind of vulnerability is it?
This is a Critical severity directory traversal (path traversal) vulnerability in the
File.download()method of theinternetarchivelibrary.Who is impacted?
All users of the
internetarchivelibrary versions< 5.5.1are impacted. The vulnerability is particularly critical for users on Windows systems, but all operating systems are affected.Description of the vulnerability:
The vulnerability existed because the
file.download()method did not properly sanitize user-supplied filenames or validate the final download path. A maliciously crafted filename could contain path traversal sequences (e.g.,../../../../windows/system32/file.txt) or illegal characters that, when processed, would cause the file to be written outside of the intended target directory.Potential Impact:
An attacker could potentially overwrite critical system files or application configuration files, leading to a denial of service, privilege escalation, or remote code execution, depending on the context in which the library is used.
Patches
Has the problem been patched?
Yes, the problem has been patched.
What versions should users upgrade to?
Users must upgrade to version 5.5.1 or later.
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
There is no direct workaround that does not involve upgrading the library. The vulnerability is in the core logic of the file download process.
The only alternative for users who absolutely cannot upgrade is to implement their own custom download function that:
However, this essentially re-implements the fix and is not recommended. Upgrading to the patched version is the only safe and supported solution.
References
Release Notes
jjjake/internetarchive (internetarchive)
v5.5.1: Version 5.5.1Compare Source
Security
Please see the security advisory for more details.
Bugfixes
v5.5.0: Version 5.5.0Compare Source
Features and Improvements
ia metadata.v5.4.1: Version 5.4.1Compare Source
Features and Improvements
Bugfixes
ia download.v5.4.0: Version 5.4.0Compare Source
Features and Improvements
--print-auth-headeroption toia configure.Bugfixes
ia_copyto avoid dropping path prefixes, fixingia_moveto properly delete moved files in subdirectories (via :gh:693).ia reviews --index/--noindexonly worked for configured user.v5.3.1Compare Source
v5.3.0: Version 5.3.0Compare Source
Features and Improvements
ia configure --showto print config to stdout.ia configure --checkfor validating credentials.ia configure --whoamifor retrieving info about the configured user.ia simplelistscommand for managing simplelists.ia flagcommand for managing flags.Bugfixes
ia copyandia movewhere anAttributeErrorwas being raised.ia upload --checksumif the file already exists.v5.2.1: Version 5.2.1Compare Source
Bugfixes
ia deletethat was causing allia deletecommands to fail.ia metadatawhere IDs were being validated needlessly and making it impossible to modify some items.v5.2.0Compare Source
v5.1.0: Version 5.1.0Compare Source
Features and Improvements
--reduced-priorityoption toia metadata.Bugfixes
ia --host <cmd>where the host was not being set correctly.ia reviews.v5.0.5: Version 5.0.5Compare Source
v5.0.4Compare Source
v5.0.3: Version 5.0.3Compare Source
Bugfixes
v5.0.2Compare Source
v5.0.1Compare Source
v5.0.0: Version 5.0.0Compare Source
Updated the CLI's command-line argument parsing by replacing the obsolete docopt with the native argparse library, ensuring continued functionality and future compatibility. Note: While the CLI functionality hasn't changed, some commands may need to be formatted slightly differently. If you encounter any issues, refer to
ia --helpandia {command} --helpif you run into any issues.What's Changed
New Contributors
Full Changelog: jjjake/internetarchive@v4.1.0...v5.0.0
v4.1.0: Version 4.1.0Compare Source
What's Changed
903a833Full Changelog: jjjake/internetarchive@v4.0.1...v4.1.0
v4.0.1: Version 4.0.1Compare Source
Features and Improvements
Last-Modifiedheader to set all mtimes (this includes files.xml now).v3.7.0: Version 3.7.0Compare Source
Features and Improvements
expectparameter.--append-listwill move the value to the end of the list).Bugfixes
v3.6.0Compare Source
v3.5.0Compare Source
v3.4.0: Version 3.4.0Compare Source
Features and Improvements
v3.3.0: Version 3.3.0Compare Source
Features and Improvements
field. It differs from
ia metadata <id> --modify collection[0]:foointhat it does not clobber. For example,
ia metadata <id> --insert collection[0]:foowill insertfooas thefirst collection, it will not clobber.
Bugfixes
submitted to the files index where more than 10,000 results would be
returned.
v3.2.0: Version 3.2.0Compare Source
Features and Improvements
v3.1.0: Version 3.1.0Compare Source
Bugfixes
ia search --ftswhere--itemlistwas printing empyt lines.ia search --ftswhere-p scope:allwas not working.ia download --stdoutwhere nothing would be printed to stdoutif the specified file existed on disk.
Item.uploadwithStringIOinputand
verbose=True.contents of the current directory.
Features and Improvements
ia downloadvia the--excludeparameter.v3.0.2: Version 3.0.2Compare Source
Bugfixes
requests,tqdm,or
jsonpatchwere not already installed.v3.0.1: Version 3.0.1Compare Source
Features and Improvements
v3.0.0: Version 3.0.0Compare Source
Breaking changes
ia downloadno longer has a--verboseoption, and--silenthas been renamed to--quiet.internetarchive.download,Item.downloadandFile.downloadno longer have asilentkeyword argument. They are silent by default now unless
verboseis set toTrue.Features and Improvements
pageparameter is no longer required ifrowsparameter is specified in search requests.ia uploadnow has a--keep-directoriesoption to use the full local file paths as theremote name.
ia downloadBugfixes
ia listunder Python 3ia upload --debugonly displaying the first request.ia uploadsilently ignoring exceptions.identifiercolumn.itemcolumn from metadata.--checksumcrashing on skipped files.v2.3.0: Version 2.3.0Compare Source
Features and Improvements
IA_CONFIG_FILEenvironment variable to specify the configuration file path.--no-deriveoption toia copyandia move.--no-backupoption toia copy,ia move,ia upload, andia delete.Bugfixes
internetarchive)would fail to return all docs without any error reporting, if the Scrape API times out.
All queries to the Scrape API are now tested to assert the number of docs returned matches the
hit count returned by the Scrape API.
If these numbers don't match, an exception is thrown in the Python API and the CLI exits with
a non-zero exit code and error message.
would be raised if a cookie wasn't set in a config file.
v2.2.0: Version 2.2.0Compare Source
Features and Improvements
ia reviews <id> --delete.ia reviews <id>.Bugfixes
ArchiveSessionobject where domains weren't getting set properly for cookies.This caused archive.org cookies to be sent to other domains.
ia upload --spreadsheet.v2.1.0: Version 2.1.0Compare Source
Features and Improvements
ia upload --spreadsheet.ia upload --spreadsheetvia aREMOTE_NAMEcolumn.Bugfixes
v2.0.3Compare Source
v2.0.2Compare Source
v2.0.0: Version 2.0.0Compare Source
Features and Improvements
ia search --fts.ia search --fts.ia tasks --get-rate-limit --cmd derive.php).ia upload --spreadsheet ....Bugfixes
ia metadata --remove ...where multiple collections would be removedif the specified collection was a substring of any of the existing collections.
ia metadata --remove ...where removing multiple collections was sometimesnot supported.
v1.9.9: Version 1.9.9Compare Source
Features and Improvements
ia upload --spreadsheet.ia configure --print-cookies.This is helpful for using your archive.org cookies in other programs like
curl.e.g.
curl -b $(ia configure --print-cookies) <url> ...v1.9.6: Version 1.9.6Compare Source
Features and Improvements
Bugfixes
six.This addresses the "No module named collections_abc" error.
v1.9.5Compare Source
v1.9.4: Version 1.9.4Compare Source
Features and Improvements
--no-backuptoia uploadto turn off backups.Bugfixes
internetarchive.get_taskswhere no tasks were returned unlesscatalogorhistoryparams were provided.This lead to issues such as queue-derive being turned off in some cases.
ia taskswhen a task log contains invalid UTF-8 character.v1.9.3: Version 1.9.3Compare Source
Features and Improvements
Item.derive()method for deriving items.Item.fixer()method for submitting fixer tasks.--task-argstoia tasksfor submitting task args to the Tasks API.Bugfixes
ia tasksto fix support for tasks that do not require a--commentoption.v1.9.2: Version 1.9.2Compare Source
Features and Improvements
tqdmfor progress bar (clintis no longer maintained).Item.identifier_available()method for calling check_identifier.php.itemoridentifieras column header in spreadsheet mode.ArchiveSession.get_my_catalog()method for retrieving running/queued tasks.ia downloadno longer downloads history dir by default.ignore_history_dirtoItem.download(). The default is False.Bugfixes
ia copyandia movewhere filenames weren't being encoded/quoted correctly.Item.get_all_item_tasks()where all calls would fail unless a dict was provided toparams.v1.9.0: Version 1.9.0Compare Source
Features and Improvements
Tasks API <https://archive.org/services/docs/api/tasks.html>_.(only darking/undarking currently supported, see Tasks API documentation).
Bugfixes
ia downloadnow displaysdownload failedinstead ofsuccesswhen download fails.Item.get_filewould not work on unicode names in Python 2.Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.