This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate acorn-lib

Dependencies

(89 total, 30 outdated, 3 insecure)

CrateRequiredLatestStatus
 acorn-analysis^0.8.10.8.1up to date
 acorn-cmd^0.8.10.8.1up to date
 acorn-core^0.8.10.8.1up to date
 acorn-diff^0.8.10.8.1up to date
 acorn-host^0.8.10.8.1up to date
 acorn-macros^0.8.10.8.1up to date
 acorn-schema^0.8.10.8.1up to date
 acorn-service^0.8.10.8.1up to date
 agent-client-protocol=2.2.05.6.1out of date
 anydoc^0.1.60.2.5out of date
 arboard^3.6.13.7.0up to date
 ariadne^0.6.00.6.0up to date
 async-trait^0.1.920.1.92up to date
 axum^0.8.90.8.9up to date
 bat^0.26.00.27.0out of date
 bon^3.9.23.10.3up to date
 cap-std^4.0.34.0.3up to date
 chromiumoxide^0.9.10.9.1up to date
 color-eyre^0.6.50.6.5up to date
 comfy-table^7.1.48.0.1out of date
 console^0.16.10.16.6up to date
 convert_case^0.11.00.12.0out of date
 data-encoding^2.10.02.11.1up to date
 derive_more^2.1.12.1.1up to date
 directories^6.0.06.0.0up to date
 dotenvy^0.15.00.15.7up to date
 dprint-core^0.69.10.78.0out of date
 dprint-plugin-json^0.25.00.26.0out of date
 duckdb~1.10505.01.20001.0out of date
 eserde^0.10.1.7up to date
 fancy-regex^0.17.00.20.2out of date
 flate2^1.1.51.1.11up to date
 fluent-uri^0.40.4.1up to date
 futures^0.3.320.3.34up to date
 glob^0.3.10.3.4up to date
 http^1.3.11.5.0up to date
 httpdate^1.0.31.0.3up to date
 indexmap^2.14.02.14.2up to date
 indicatif^0.18.20.18.6up to date
 is_executable^1.0.51.0.6up to date
 itertools^0.14.00.15.0out of date
 jiff^0.21.0.3out of date
 jsonc-parser^0.330.34.0out of date
 jsonschema^0.57.00.63.2out of date
 lazy_static^1.5.01.5.1up to date
 lychee-lib^0.23.00.24.2out of date
 nanoid^0.5.00.5.0up to date
 owo-colors^4.3.04.4.2up to date
 pdf-inspector^0.1.71.27.1out of date
 polars^0.53.00.55.2out of date
 polars-error^0.53.00.55.2out of date
 pretty_yaml^0.6.00.6.0up to date
 quick-xml^0.41.00.42.0out of date
 rand^0.80.10.4out of date
 rayon^1.12.01.12.0up to date
 reqwest^0.13.20.13.5up to date
 resvg^0.45.10.50.0out of date
 rhai^1.22.01.27.0up to date
 ring^0.17.140.17.14up to date
 rmcp ⚠️^1.5.03.12.0insecure
 ron=0.12.20.12.3out of date
 rsa ⚠️^0.9.100.10.0insecure
 rusqlite^0.39.00.43.0out of date
 rust-ini^0.21.30.21.3up to date
 same-file^1.0.61.0.6up to date
 schemars^1.0.41.2.3up to date
 secrecy^0.10.30.10.3up to date
 serde^1.0.2251.0.229up to date
 serde_json^1.0.1491.0.154up to date
 serde_norway^0.9.420.9.42up to date
 serde_with^3.15.13.25.0up to date
 sevenz-rust2^0.21.50.27.0out of date
 similar^3.1.03.2.1up to date
 strum^0.28.00.28.0up to date
 swhid^0.2.20.2.2up to date
 sysinfo^0.38.20.40.4out of date
 tar^0.4.450.4.46up to date
 tempfile^33.27.0up to date
 tera^1.20.02.4.0out of date
 thiserror^2.0.182.0.21up to date
 tokio^1.48.01.54.1up to date
 tower^0.5.30.5.3up to date
 tracing^0.1.400.1.44up to date
 urlencoding^2.1.32.1.3up to date
 validator^0.20.00.21.0out of date
 veil^0.3.00.3.0up to date
 which^8.0.08.0.6up to date
 zip ⚠️^8.5.19.9.0insecure
 zstd^0.13.30.14.5out of date

Dev dependencies

(10 total, all up-to-date)

CrateRequiredLatestStatus
 axum^0.8.90.8.9up to date
 criterion^0.8.20.8.2up to date
 indicatif^0.18.20.18.6up to date
 insta^1.47.21.49.0up to date
 owo-colors^4.3.04.4.2up to date
 proptest^1.9.01.12.0up to date
 similar-asserts^2.0.02.0.0up to date
 temp-env^0.3.60.3.6up to date
 tempfile^33.27.0up to date
 tracing-subscriber^0.3.230.3.23up to date

Security Vulnerabilities

rsa: Marvin Attack: potential key recovery through timing sidechannels

RUSTSEC-2023-0071

Impact

Due to a non-constant-time implementation, information about the private key is leaked through timing information which is observable over the network. An attacker may be able to use that information to recover the key.

Patches

The rsa v0.10 series includes a migration to crypto-bigint and constant-time mitigations recommended in draft-irtf-cfrg-rsa-guidance. Upgrading to this release should resolve all known constant-time issues.

References

This vulnerability was discovered as part of the "Marvin Attack", which revealed several implementations of RSA including OpenSSL had not properly mitigated timing sidechannel attacks.

zip: Insecure Preservation of SUID/SGID Bits during ZIP Extraction Leading to Potential Privilege Escalation

RUSTSEC-2026-0367

The zip crate preserves privileged Unix permission bits (SUID, SGID, and sticky bits) from ZIP external_attributes during extraction, instead of masking them to safe permission bits. If a privileged process (for example, root in an installer, CI/CD pipeline, or container build) extracts an attacker-controlled ZIP archive using ZipArchive::extract() or the stream extraction API, files can be created as setuid-root or setgid. This behavior allows the creation of SUID/SGID files during extraction, which can lead to local privilege escalation depending on the execution environment.

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-vv5m-jxxh-4627

zip: zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory

RUSTSEC-2026-0368

In zip 9.0.0-pre2, ZipArchive::extract creates a symbolic link from an archive entry after validating only the output entry path. The link target bytes are passed directly to the platform symlink API, so a malicious archive can create an entry inside the destination that resolves to an attacker-chosen path outside it. This behavior was verified on macOS and Linux. On either platform, a subsequent application read or write through that extracted entry accesses the external target with the extracting process's permissions.

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4v9h-p7m9-rh26

zip: ZipStreamReader::extract() and ZipArchive::extract() apply Unix permissions through symlinks without confining the target

RUSTSEC-2026-0369

ZipStreamReader::extract() applies Unix permissions through extracted symlinks without validating the symlink target stays within the destination

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4684-h2q9-2vcp

zip: zip: `ZipArchive::extract` aborts the process on a symlink entry with a large declared size

RUSTSEC-2026-0429

ZipArchive::extract() sizes the symlink-target buffer from the uncompressed size declared in the central directory record, before reading a single byte of entry data:

let mut target = Vec::with_capacity(file.size() as usize);

Both inputs are attacker-controlled. ZipFile::size() returns uncompressed_size verbatim from the central directory, widened to a full u64 by a ZIP64 extended-information extra field, and is never cross-checked against the compressed size, the remaining archive length, or any platform-appropriate bound for a symlink target. ZipFile::is_symlink() is decided entirely by the S_IFLNK bit of the external-attributes field.

Vec::with_capacity() is infallible: when the reservation is refused it calls handle_alloc_error() and aborts the process. This is not a Rust panic. It is not caught by catch_unwind(), is unaffected by panic = "unwind", and is not contained by running the call on a worker thread.

A 112-byte archive is sufficient. One Stored entry flagged S_IFLNK with a ZIP64 field declaring uncompressed_size = 2^62 and a zero-byte payload makes extract() fail with:

memory allocation of 4611686018427387904 bytes failed
Aborted (core dumped)          # exit 134

The declared value only needs to exceed the host's address space, not its RAM: Vec::with_capacity() maps address space without touching pages, so resident memory stays flat and the abort happens on the refused reservation itself. Under a ulimit -v cap or a memory-constrained container the threshold drops far enough that a plain 32-bit uncompressed_size with no ZIP64 field suffices.

Applications that extract archives from untrusted input are affected on Unix and Windows targets with default features and no special configuration: upload handling, mail-attachment processing, package and artefact ingestion, backup restore and container-image layer extraction. No confidentiality or integrity property is affected: there is no memory unsafety, no out-of-bounds access, no disclosure and no data corruption.

The fix landed in zip-rs/zip2#984 and shipped in 9.0.0.

For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-q7v9-x93c-xqv3

rmcp: Unbounded response body buffering in Streamable HTTP clients

RUSTSEC-2026-0462

Before 3.9.0, the built-in Streamable HTTP clients in rmcp read non-streaming HTTP response bodies into memory with no size limit. Both the reqwest client (transport-streamable-http-client-reqwest) and the Unix socket client (transport-streamable-http-client-unix-socket) were affected:

  • application/json responses to POST requests were read in full before parsing.
  • Non-2xx responses were read in full for error reporting.

A malicious or compromised MCP server can answer with a body that never ends, for example a chunked application/json response that streams whitespace. The client buffers it until the process runs out of memory. This works during initialize, before any authentication. On desktop or agent hosts, this terminates the whole host application.

Server-sent event streams are not affected. Each event is already capped by max_sse_event_size, and events are not accumulated.

The flaw was corrected in 3.9.0. Successful JSON bodies are limited to 16 MiB and non-success bodies to 64 KiB. Bytes are counted while streaming, after decompression. An oversized Content-Length is rejected before the body is read, and an oversized body is rejected with StreamableHttpError::ResponseBodyTooLarge instead of being truncated.

If you cannot upgrade, use a custom StreamableHttpClient that enforces a response body limit, or connect only to trusted MCP servers.

zip: AES entries returned without checking their authentication code when the data ends early or is empty

RUSTSEC-2026-0545

For WinZip AES (AE-1 and AE-2) entries, the 10-byte HMAC authentication code was read and checked only after the reader had consumed exactly the entry's declared compressed size. If the archive ended before that size was reached, the read returned end-of-stream and the truncated plaintext was accepted without the check. The authentication code of an entry with no encrypted data was never checked.

AES-CTR ciphertext can be changed bit by bit without the password, and AE-2 entries carry no CRC-32, so an attacker who can modify an archive can alter the decrypted contents of such an entry without any error being reported.

This affects reading AES-encrypted entries with a password (for example ZipArchive::by_name_decrypt) with the aes-crypto feature.

The fix returns an error when the data ends before the declared size, and checks the authentication code of empty entries.

zip: `ZipArchive::extract` can write outside the destination through absolute or chained symlink targets

RUSTSEC-2026-0546

Before writing an entry whose path goes through a symlink, ZipArchive::extract checks the symlink's target against the destination directory. That check compares the paths as text and does not follow symlinks, and from 7.2.0 it drops the root and prefix of an absolute target before comparing. Symlinks taken from the archive were created without any check of their targets.

A crafted archive can first create a symlink that points outside the destination, then a second symlink whose target looks like a path inside the destination but goes through the first one, and then a file entry under the second symlink. The file is written outside the destination directory, for example over an existing file in the user's home directory, and extract still returns Ok(()). On Windows, a target on another drive or share whose path otherwise matches the destination passes the check directly (creating symlinks there needs Developer Mode or administrator rights). The attacker has to know or guess the absolute path of the destination directory.

This affects ZipArchive::extract and ZipArchive::extract_unwrapped_root_dir.

The fix resolves symlink targets one component at a time from the canonicalized destination, following symlinks on the way, and refuses to create a symlink, or write through one, that leads outside the destination.

zip: Legacy Shrink, Reduce and Implode decoders preallocate the declared uncompressed size

RUSTSEC-2026-0547

With the legacy-zip feature, the decoders for the Shrink, Reduce and Implode compression methods reserved output capacity for the entry's declared uncompressed size before decoding anything. That size comes from the archive, and a ZIP64 entry can declare any 64-bit value, so reading or extracting a crafted entry of a few bytes panics with "capacity overflow" or fails a huge allocation.

An attacker who can supply an archive can stop a process that reads it, for example through ZipArchive::extract.

Only builds with the legacy-zip feature are affected; it is not enabled by default.

The fix caps the preallocation at 1 MiB, and such an entry now returns an error.

zip: `ZipStreamReader` extracts entries under local-header names that can differ from the central directory

RUSTSEC-2026-0548

A ZIP archive names each entry twice: in the local file header in front of the entry's data, and in the central directory at the end of the archive. ZipArchive lists and opens entries by their central-directory names. ZipStreamReader::visit and ZipStreamReader::extract, like read_zipfile_from_stream, read the local headers in order and use the local-header names without comparing them with the central directory.

An archive can therefore show one set of file names to code that inspects it with ZipArchive and write files under other names when it is extracted with ZipStreamReader. If an application checks an archive one way and extracts it the other way, an attacker can get files written or overwritten inside the destination directory that the check never saw.

The fix adds an opt-in check. ZipStreamReader::enforce_header_consistency(true) compares each local header with its central-directory entry (name, sizes, CRC-32, compression method, flags and modification time) and fails extraction on a mismatch; ZipReadOptions::enforce_header_consistency(true) and ZipArchive::validate_header_consistency() do the same for ZipArchive. The check is off by default, so upgrading alone does not change what ZipStreamReader::new(...) extracts: applications that extract untrusted archives with ZipStreamReader need to turn it on.