MEDIUM5.5
GHSA-c9rv-3jmq-527w
Unexpected panic when decoding tokens in branca
Details
Prior to 0.10.0 it was possible to have both decoding functions panic unexpectedly, by supplying tokens with an incorrect base62 encoding. The documentation stated that an error should have been reported instead.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/branca
Introduced in:
0Fixed in: 0.10.0Upgrade branca to 0.10.0 or newer (ecosystem crates.io).
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-35918[ADVISORY]
- https://github.com/return/branca/issues/24[WEB]
- https://github.com/tuupola/branca-spec/issues/22[WEB]
- https://github.com/return/branca/commit/7da3274bd99b05dce9c3f9b4b129d0145c71820b[WEB]
- https://github.com/return/branca[PACKAGE]
- https://rustsec.org/advisories/RUSTSEC-2020-0075.html[WEB]