@tinyhttp/cookie-signature is vulnerable to Improper Verification of Cryptographic Signature
37
Low Risk
The unsign function in @tinyhttp/cookie-signature verifies a signed cookie value by comparing the supplied signature against the expected HMAC after truncating the supplied value to the expected length. Because only a prefix is compared, appending arbitrary data to a valid signed value still verifies as authentic and returns the original value. Tampered cookie values therefore pass verification as long as they begin with a valid signature. The fix rejects values whose signature length does not match and compares the full signature.
You are affected if you are using a version that falls within the vulnerable range and your application relies on unsign to validate signed cookie values.
@tinyhttp/cookie-signature is vulnerable to Improper Verification of Cryptographic Signature in versions 0.0.1 - 2.1.1.
Upgrade the @tinyhttp/cookie-signature library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant