Intel

AIKIDO-2026-850060

@tinyhttp/cookie-signature is vulnerable to Improper Verification of Cryptographic Signature

Improper Verification of Cryptographic SignatureGHSA-63x4-8g8c-vhww Published Aug 14, 2026

37

Low Risk

This Affects:

JS@tinyhttp/cookie-signature
0.0.1 - 2.1.1
Fixed in 2.1.2
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

@tinyhttp/cookie-signature is vulnerable to Improper Verification of Cryptographic Signature in versions 0.0.1 - 2.1.1.

How to fix this

Upgrade the @tinyhttp/cookie-signature library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform