This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate neolink

Dependencies

(30 total, 13 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.701.0.104up to date
 base64^0.22.00.23.1out of date
 byte-slice-cast^1.2.21.2.3up to date
 bytes ⚠️^1.6.01.12.1maybe insecure
 clap^4.2.24.6.6up to date
 crossbeam-channel^0.5.80.5.16up to date
 dirs^5.0.16.0.0out of date
 env_logger^0.11.30.11.11up to date
 fcm-push-listener^2.0.34.1.1out of date
 futures^0.3.280.3.34up to date
 gstreamer^0.23.00.25.3out of date
 gstreamer-app^0.23.00.25.2out of date
 gstreamer-rtsp^0.23.00.25.0out of date
 gstreamer-rtsp-server^0.23.00.25.2out of date
 heck^0.5.00.5.0up to date
 log^0.4.170.4.34up to date
 md5^0.7.00.8.1out of date
 once_cell^1.19.01.21.4up to date
 quick-xml ⚠️^0.36.10.42.0out of date
 regex^1.7.31.13.1up to date
 rumqttc^0.24.00.25.1out of date
 serde^1.0.1601.0.229up to date
 serde_json^1.0.961.0.151up to date
 tokio^1.27.01.53.1up to date
 tokio-stream^0.1.120.1.19up to date
 tokio-util^0.7.70.7.19up to date
 toml^0.8.21.1.4+spec-1.1.0out of date
 uuid^1.8.01.25.0up to date
 validator^0.18.10.21.0out of date
 tikv-jemallocator^0.50.7.0out of date

Crate neolink_core

Dependencies

(22 total, 8 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 aes^0.8.20.9.2out of date
 bytes ⚠️^1.4.01.12.1maybe insecure
 cfb-mode^0.8.20.9.1out of date
 cookie-factory^0.3.20.3.3up to date
 crc32fast^1.3.21.5.1up to date
 crossbeam-channel^0.5.80.5.16up to date
 delegate^0.12.00.13.5out of date
 futures^0.3.280.3.34up to date
 get_if_addrs^0.5.30.5.3up to date
 lazy_static^1.4.01.5.0up to date
 log^0.4.170.4.34up to date
 md5^0.7.00.8.1out of date
 nom^7.1.38.0.0out of date
 quick-xml ⚠️^0.36.00.42.0out of date
 rand^0.8.50.10.2out of date
 regex^1.7.31.13.1up to date
 serde^1.0.1061.0.229up to date
 thiserror^1.0.582.0.20out of date
 time ⚠️^0.3.360.3.55maybe insecure
 tokio^1.27.01.53.1up to date
 tokio-stream^0.1.120.1.19up to date
 tokio-util^0.7.70.7.19up to date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 assert_matches^1.5.01.5.0up to date
 env_logger*0.11.11up to date
 indoc^2.0.12.0.7up to date

Security Vulnerabilities

bytes: Integer overflow in `BytesMut::reserve`

RUSTSEC-2026-0007

In the unique reclaim path of BytesMut::reserve, the condition

if v_capacity >= new_cap + offset

uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB.

This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.

PoC

use bytes::*;

fn main() {
    let mut a = BytesMut::from(&b"hello world"[..]);
    let mut b = a.split_off(5);

    // Ensure b becomes the unique owner of the backing storage
    drop(a);

    // Trigger overflow in new_cap + offset inside reserve
    b.reserve(usize::MAX - 6);

    // This call relies on the corrupted cap and may cause UB & HBO
    b.put_u8(b'h');
}

Workarounds

Users of BytesMut::reserve are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.

time: Denial of Service via Stack Exhaustion

RUSTSEC-2026-0009

Impact

When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.

Patches

A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack.

Workarounds

Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input.

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.