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 ultimo

Dependencies

(16 total, 8 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 serde_urlencoded^0.70.7.1up to date
 futures-util^0.30.3.34up to date
 uuid^1.01.26.1up to date
 sha1^0.100.11.0out of date
 base64^0.210.23.1out of date
 async-trait^0.10.1.92up to date
 getrandom^0.30.4.3out of date
 jsonwebtoken^1011.0.0out of date
 sha2^0.100.11.0out of date
 mime_guess^22.0.5up to date
 reqwest^0.120.13.5out of date
 flate2^11.1.10up to date
 brotli^89.0.0out of date
 sqlx ⚠️^0.80.9.0out of date
 diesel^2.3.102.3.13up to date
 r2d2^0.80.8.10up to date

Dev dependencies

(9 total, 4 outdated, 1 insecure)

CrateRequiredLatestStatus
 tokio-test^0.40.4.5up to date
 tempfile^33.27.0up to date
 proptest^1.51.11.0up to date
 criterion^0.50.8.2out of date
 tokio-tungstenite^0.240.30.0out of date
 futures-util^0.30.3.34up to date
 reqwest^0.120.13.5out of date
 rsa ⚠️^0.90.9.10insecure
 rand^0.80.10.2out of date

Crate basic-example

No external dependencies! 🙌

Crate rpc-modes

No external dependencies! 🙌

Crate openapi-demo

No external dependencies! 🙌

Crate database-sqlx-example

Dependencies

(5 total, 1 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 tokio^1.351.53.1up to date
 serde^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 sqlx ⚠️^0.80.9.0out of date
 tracing-subscriber ⚠️^0.30.3.23maybe insecure

Crate database-diesel-example

Dependencies

(5 total, 2 possibly insecure)

CrateRequiredLatestStatus
 diesel ⚠️^2.12.3.13maybe insecure
 tokio^1.351.53.1up to date
 serde^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 tracing-subscriber ⚠️^0.30.3.23maybe insecure

Crate database-api-styles

Dependencies

(5 total, 1 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 tokio^1.351.53.1up to date
 serde^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 sqlx ⚠️^0.80.9.0out of date
 tracing-subscriber ⚠️^0.30.3.23maybe insecure

Dev dependencies

(1 total, 1 outdated)

CrateRequiredLatestStatus
 reqwest^0.120.13.5out of date

Crate websocket-chat

Dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 async-trait^0.10.1.92up to date

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 tokio-tungstenite^0.240.30.0out of date
 futures-util^0.30.3.34up to date

Crate websocket-chat-react

Dependencies

(4 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^11.53.1maybe insecure
 serde^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 async-trait^0.10.1.92up to date

Crate session-auth-example

No external dependencies! 🙌

Crate jwt-auth-example

No external dependencies! 🙌

Crate spa-demo

Dependencies

(4 total, 2 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^11.53.1maybe insecure
 serde^11.0.229up to date
 serde_json^11.0.151up to date
 tracing-subscriber ⚠️^0.30.3.23maybe insecure

Crate streaming-example

Dependencies

(3 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^11.53.1maybe insecure
 futures-util^0.30.3.34up to date
 hyper^11.11.1up to date

Crate sse-example

Dependencies

(3 total, 1 possibly insecure)

CrateRequiredLatestStatus
 tokio ⚠️^11.53.1maybe insecure
 futures-util^0.30.3.34up to date
 serde_json^11.0.151up to date

Crate ultimo-cli

Dependencies

(10 total, 3 outdated)

CrateRequiredLatestStatus
 clap^4.54.6.6up to date
 serde^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 tokio^1.351.53.1up to date
 anyhow^1.01.0.104up to date
 colored^2.13.1.1out of date
 notify^88.2.0up to date
 notify-debouncer-mini^0.50.7.0out of date
 rmcp^33.3.0up to date
 reqwest^0.120.13.5out of date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 assert_cmd^22.2.2up to date
 predicates^33.1.4up to date
 tempfile^33.27.0up to date

Crate ultimo-coverage

Dependencies

(4 total, 1 possibly insecure)

CrateRequiredLatestStatus
 serde^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 walkdir^2.52.5.0up to date
 chrono ⚠️^0.40.4.45maybe insecure

Security Vulnerabilities

chrono: Potential segfault in `localtime_r` invocations

RUSTSEC-2020-0159

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

Workarounds

No workarounds are known.

References

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);

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.

sqlx: Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts

RUSTSEC-2024-0363

The following presentation at this year's DEF CON was brought to our attention on the SQLx Discord:

SQL Injection isn't Dead: Smuggling Queries at the Protocol Level
http://web.archive.org/web/20240812130923/https://media.defcon.org/DEF%20CON%2032/DEF%20CON%2032%20presentations/DEF%20CON%2032%20-%20Paul%20Gerste%20-%20SQL%20Injection%20Isn't%20Dead%20Smuggling%20Queries%20at%20the%20Protocol%20Level.pdf
(Archive link for posterity.)

Essentially, encoding a value larger than 4GiB can cause the length prefix in the protocol to overflow, causing the server to interpret the rest of the string as binary protocol commands or other data.

It appears SQLx does perform truncating casts in a way that could be problematic, for example: https://github.com/launchbadge/sqlx/blob/6f2905695b9606b5f51b40ce10af63ac9e696bb8/sqlx-postgres/src/arguments.rs#L163

This code has existed essentially since the beginning, so it is reasonable to assume that all published versions <= 0.8.0 are affected.

Mitigation

As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound.

Encode::size_hint() can be used for sanity checks, but do not assume that the size returned is accurate. For example, the Json<T> and Text<T> adapters have no reasonable way to predict or estimate the final encoded size, so they just return size_of::<T>() instead.

For web application backends, consider adding some middleware that limits the size of request bodies by default.

Resolution

sqlx 0.8.1 has been released with the fix: https://github.com/launchbadge/sqlx/blob/main/CHANGELOG.md#081---2024-08-23

Postgres users are advised to upgrade ASAP as a possible exploit has been demonstrated: https://github.com/launchbadge/sqlx/issues/3440#issuecomment-2307956901

MySQL and SQLite do not appear to be exploitable, but upgrading is recommended nonetheless.

tracing-subscriber: Logging user input may result in poisoning logs with ANSI escape sequences

RUSTSEC-2025-0055

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

This was patched in PR #3368 to escape ANSI control characters from user input.

diesel: Command injection in Diesel's implementation of `COPY FROM`/`COPY TO`

RUSTSEC-2026-0136

Diesel allows users to configure various options for PostgreSQL's COPY FROM and COPY TO statements. These configurations are partially provided as strings or characters.

Diesel did not check if any these user-provided options contain a quote character ', which can lead to the injection of additional options in the current COPY FROM/COPY TO statement.

This vulnerability affects any user of COPY FROM/COPY TO that passes user-provided input to any of the affected functions. It can result in modifications of options in the current statement, but it is not possible inject additional statements.

Mitigation

The preferred mitigation to the outlined problem is to update to Diesel version 2.3.8 or newer, which includes fixes for the problem.

Resolution

Diesel now correctly escapes any quotes contained in the provided arguments.

diesel: Possible unaligned data access for implementations of `SqliteAggregate`

RUSTSEC-2026-0137

Diesel allows to register custom aggregate SQL functions for SQLite via the SqliteAggregate interface.

To store an instance of the custom aggregate processor Diesel relied on the sqlite3_aggregate_context function provided by sqlite. This function doesn't provide any guarantees about alignment of the returned allocation, which in turn can lead to problems if the type implementing requires a special alignment, e.g. via a custom #[align(x)] attribute on the type implementing this trait. This affects any user of SqliteAggregate that registers the custom aggregate function with an SQLite connection, while using a non-standard alignment on the type implementing this trait.

Mitigation

The preferred mitigation to the outlined problem is to update to a Diesel version 2.3.8 or newer, which includes fixes for the problem.

Resolution

Diesel now allocates the corresponding memory on Rust side to get a correctly aligned allocation.