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

Crate jwt-compact

Dependencies

(20 total, 1 insecure)

CrateRequiredLatestStatus
 anyhow^1.0.821.0.86up to date
 base64ct^1.5.21.6.0up to date
 ciborium^0.2.20.2.2up to date
 chrono^0.4.380.4.38up to date
 rand_core^0.6.20.6.4up to date
 serde^1.01.0.202up to date
 serde_json^1.01.0.117up to date
 hmac^0.12.00.12.1up to date
 sha2^0.100.10.8up to date
 lazy_static^1.41.4.0up to date
 smallvec^1.13.21.13.2up to date
 subtle^2.4.02.5.0up to date
 zeroize^1.71.7.0up to date
 secp256k1^0.290.29.0up to date
 k256^0.13.30.13.3up to date
 p256^0.13.00.13.2up to date
 exonum-crypto^1.0.01.0.0up to date
 ed25519-dalek^2.1.12.1.1up to date
 ed25519-compact^2.1.12.1.1up to date
 rsa ⚠️^0.90.9.6insecure

Dev dependencies

(9 total, all up-to-date)

CrateRequiredLatestStatus
 assert_matches^1.31.5.0up to date
 const-decoder^0.3.00.3.0up to date
 criterion^0.5.10.5.1up to date
 doc-comment^0.3.30.3.3up to date
 hex-buffer-serde^0.4.00.4.0up to date
 num-bigint-dig^0.8.20.8.4up to date
 rand^0.8.30.8.5up to date
 uuid^1.8.01.8.0up to date
 version-sync^0.90.9.5up to date

Crate jwt-compact-nostd

Dependencies

(13 total, 1 insecure)

CrateRequiredLatestStatus
 anyhow^1.0.821.0.86up to date
 chrono^0.4.380.4.38up to date
 const-decoder^0.3.00.3.0up to date
 serde^1.01.0.202up to date
 cortex-m^0.70.7.7up to date
 cortex-m-rt^0.70.7.4up to date
 cortex-m-semihosting^0.50.5.0up to date
 embedded-alloc^0.5.10.5.1up to date
 panic-halt^0.2.00.2.0up to date
 getrandom^0.20.2.15up to date
 once_cell^1.19.01.19.0up to date
 rand_chacha^0.3.10.3.1up to date
 rsa ⚠️^0.90.9.6insecure

Crate jwt-compact-wasm

Dependencies

(5 total, all up-to-date)

CrateRequiredLatestStatus
 wasm-bindgen^0.2.920.2.92up to date
 chrono^0.4.380.4.38up to date
 serde^1.01.0.202up to date
 serde_json^1.01.0.117up to date
 getrandom^0.20.2.15up 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.