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

Crate jsonwebtoken

Dependencies

(17 total, 10 outdated, 1 insecure)

CrateRequiredLatestStatus
 aws-lc-rs^1.15.01.18.1up to date
 base64^0.220.23.1out of date
 ed25519-dalek^2.1.13.0.0out of date
 getrandom^0.20.4.3out of date
 hmac^0.12.10.13.0out of date
 js-sys^0.30.3.105up to date
 p256^0.13.20.14.0out of date
 p384^0.13.00.14.0out of date
 pem^34.0.0out of date
 rand^0.8.50.10.3out of date
 rsa ⚠️^0.9.60.9.10insecure
 serde^1.0.2281.0.229up to date
 serde_json^1.01.0.151up to date
 sha2^0.10.70.11.0out of date
 signature^2.2.03.0.0out of date
 simple_asn1^0.60.6.4up to date
 zeroize^1.8.21.9.0up to date

Dev dependencies

(6 total, 3 outdated)

CrateRequiredLatestStatus
 criterion^0.80.8.2up to date
 ed25519-dalek^2.1.13.0.0out of date
 rand^0.8.50.10.3out of date
 rand_core^0.6.40.10.1out of date
 time^0.30.3.55up to date
 wasm-bindgen-test^0.3.10.3.78up 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. The crypto-bigint migration (RustCrypto/RSA#394) did not close this. Tracking is RustCrypto/RSA#626 (padding still not constant-time). Implicit rejection work is in RustCrypto/RSA#680; default-path blinding is in RustCrypto/RSA#702.

Still affected as of 2026-09-12: rsa 0.9.10 (latest stable) and rsa 0.10.0-rc.18 (latest). patched = [] is intentional.

Workarounds

Avoid using the rsa crate in settings where attackers can observe timing, for example over the network. 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.