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

Crate acorn-lib

Dependencies

(81 total, 20 outdated, 1 insecure, 2 possibly insecure)

CrateRequiredLatestStatus
 acorn-macros^0.1.590.1.75up to date
 aho-corasick^1.1.41.1.5up to date
 ammonia ⚠️^4.1.24.1.4maybe insecure
 anydoc^0.1.60.2.4out of date
 ariadne^0.6.00.6.0up to date
 async-trait^0.1.860.1.92up to date
 axum^0.8.90.8.9up to date
 bat^0.26.00.26.1up to date
 bon^3.8.13.10.0up to date
 color-eyre^0.6.50.6.5up to date
 comfy-table^7.1.48.0.0out of date
 console^0.16.10.16.4up 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
 duckdb~1.10505.01.10505.0up to date
 eserde^0.10.1.7up to date
 exitcode^1.1.21.1.2up to date
 fancy-regex^0.17.00.19.0out of date
 flate2^1.1.51.1.10up 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
 hashbrown^0.17.00.17.1up to date
 hf-hub^11.0.0up to date
 httpdate^1.0.31.0.3up to date
 human-units^0.5.30.5.4up to date
 indicatif^0.18.20.18.6up to date
 infer^0.22.00.22.0up to date
 is_executable^1.0.51.0.6up to date
 itertools^0.14.00.15.0out of date
 jiff^0.20.2.35up to date
 jsonc-parser^0.330.33.1up to date
 lazy_static^1.5.01.5.0up to date
 lychee-lib^0.23.00.24.2out of date
 nanoid^0.5.00.5.0up to date
 nucleo-matcher^0.3.10.3.1up to date
 owo-colors^4.3.04.4.0up to date
 percy-dom^0.10.00.11.1out of date
 petgraph^0.8.30.8.3up to date
 polars^0.53.00.55.2out of date
 quick-xml ⚠️^0.39.10.42.0out of date
 rand^0.80.10.2out of date
 rayon^1.12.01.12.0up to date
 reqwest^0.13.20.13.4up to date
 resvg^0.45.10.48.1out of date
 ring^0.17.140.17.14up to date
 rmcp^1.5.03.1.4out of date
 rsa ⚠️^0.9.100.9.10insecure
 rusqlite^0.39.00.40.2out of date
 rust-embed^8.11.08.12.0up to date
 rust-ini^0.21.30.21.3up to date
 schemars^1.0.41.2.2up to date
 secrecy^0.10.30.10.3up to date
 serde^1.0.2251.0.229up to date
 serde_json^1.0.1491.0.151up to date
 serde_norway^0.9.420.9.42up to date
 serde_repr^0.10.1.21up to date
 serde_trim^1.1.01.1.0up to date
 serde_with^3.15.13.22.0up to date
 sevenz-rust2^0.21.50.22.2out of date
 shell-words^1.1.01.1.1up to date
 shuck-linter^0.0.410.1.3out of date
 shuck-parser^0.0.410.1.3out of date
 similar^3.1.03.2.0up to date
 sophia^0.9.00.10.0out of date
 strum^0.28.00.28.0up to date
 swhid^0.2.20.2.2up to date
 sysinfo^0.38.20.39.6out of date
 tar^0.4.450.4.46up to date
 tera^1.20.02.3.0out of date
 tokio^1.48.01.53.1up to date
 tower^0.5.30.5.3up to date
 tracing^0.1.400.1.44up to date
 triomphe^0.1.150.1.16up to date
 urlencoding^2.1.32.1.3up to date
 validator^0.20.00.21.0out of date
 which^8.0.08.0.6up to date
 zip^8.5.18.6.0up to date

Dev dependencies

(10 total, 1 outdated)

CrateRequiredLatestStatus
 criterion^0.8.20.8.2up to date
 indicatif^0.18.20.18.6up to date
 insta^1.47.21.48.0up to date
 mockall^0.14.00.15.0out of date
 pretty_assertions^1.4.11.4.1up to date
 proptest^1.9.01.11.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
 zench^0.2.00.2.1up 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

No patch is yet available, however work is underway to migrate to a fully constant-time implementation.

Workarounds

The only currently available workaround is to avoid using the rsa crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer is fine.

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.

quick-xml: Quadratic run time when checking a start tag for duplicate attribute names

RUSTSEC-2026-0194

BytesStart::attributes() returns an Attributes iterator which, by default (with_checks(true)), rejects a start tag that repeats an attribute name. For each attribute yielded, the iterator compared the new name against every name seen so far in the same tag using a linear scan, so a start tag with N distinct attribute names cost O(N²) byte comparisons. There was no bound on N other than the size of the buffered start tag.

Impact

Any code that parses untrusted XML and iterates a start tag's attributes with the default duplicate check enabled can be made to spend CPU time quadratic in the number of attributes on a single tag. Because the check is pure computation with no .await/I/O, an I/O-based timeout on the consumer (for example a read or request timeout) cannot interrupt it while it runs.

Measured cost of a single start tag, release build:

| Attributes on one tag | Time | |---|---| | 80,000 | ~6 s | | 800,000 | ~10 min |

The cost grows with the square of the attribute count, so a start tag of a few tens of megabytes can stall a parsing thread for hours. No memory is exhausted and the parser does not crash; the effect is CPU exhaustion on the thread doing the parsing: a single crafted start tag can pin a CPU core for minutes to hours, denying service to that worker. A deployment that places a wall-clock bound on parsing, or confines it to a non-critical thread, may consider the availability impact lower.

Affected code paths

  • BytesStart::attributes() / Attributes iterated with checks enabled (the default), and BytesStart::try_get_attribute.
  • NsReader, which resolves namespaces by iterating a tag's attributes and so reaches the same check internally.

Consumers that iterate attributes with .attributes().with_checks(false) and do not use NsReader are not affected.

This was reported as reachable by a remote, unauthenticated attacker in a real-world RPKI relying party (NLnet Labs Routinator) via a crafted RRDP snapshot.xml.

Remediation

Upgrade to quick-xml >= 0.41.0, where the duplicate check keeps the linear scan for start tags with a small number of attributes and switches to an O(1) hash pre-filter above a threshold, making the whole tag O(N). The reported AttrError::Duplicated positions are unchanged.

If upgrading is not possible and duplicate-name detection is not required, disable it with .attributes().with_checks(false) (this does not help NsReader consumers, which have no equivalent opt-out before 0.41.0).

quick-xml: Unbounded namespace-declaration allocation in `NsReader` enables memory-exhaustion denial of service

RUSTSEC-2026-0195

NsReader resolves namespaces by calling NamespaceResolver::push for every Start/Empty event before the event is returned to the caller. push iterated all xmlns / xmlns:* attributes on the start tag and, for each one, appended the prefix bytes to an internal buffer and pushed a NamespaceBinding (32 bytes on 64-bit) to an internal Vec, with no upper bound on the number of declarations.

Impact

A start tag with N namespace declarations drove roughly the tag's byte size in NamespaceResolver heap, allocated inside quick-xml before the NsReader consumer ever received the event and could inspect or reject it. A consumer that bounds its input size therefore still cannot bound this allocation: an M-byte start tag yields on the order of 3 × M bytes of resolver heap the caller never sees.

On untrusted XML this lets a remote, unauthenticated attacker force large heap allocations with a single start tag. With several NsReaders running concurrently on independent inputs (a common server pattern), the allocations stack and can exhaust process memory, causing the operating system to kill the process (OOM). This was confirmed against a real-world RPKI relying party (NLnet Labs Routinator), where concurrent RRDP validation workers parsing a crafted snapshot.xml exceeded the memory limit and the process was OOM-killed.

Affected code paths

Consumers using NsReader (which always calls NamespaceResolver::push before yielding Start/Empty), or calling NamespaceResolver::push directly. A plain Reader that does not perform namespace resolution is not affected.

Remediation

Upgrade to quick-xml >= 0.41.0. NamespaceResolver::push now rejects a start tag that declares more than DEFAULT_MAX_DECLARATIONS_PER_ELEMENT (256) namespace bindings, returning the new NamespaceError::TooManyDeclarations instead of allocating without limit. The limit is configurable via NamespaceResolver::set_max_declarations_per_element (use usize::MAX to restore the previous unbounded behavior), and NsReader::resolver_mut() is provided to reach it.

There is no clean workaround for NsReader consumers before 0.41.0, as the allocation happens inside the reader with no configuration knob to cap it.

ammonia: XSS in ammonia via SVG `animate` and `set` animation tags

RUSTSEC-2026-0213

The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.

<svg xmlns="http://www.w3.org/2000/svg">
  <a>
    <set attributeName="href" to="javascript:alert('SET_XSS')"></set>
    <text y="30">Click set</text>
  </a>
</svg>

Ammonia did not apply attribute filters based on attributeName, so the contents of the to, from, and values tags were not sanitized as URLs.

Applications that do not explicitly allow either of these tags should not be affected, since neither are allowed by default.


Discovered by: Younghun Ko (@koyokr)