github.com/dunglas/mercure/caddy is vulnerable to Improper Verification of Cryptographic Signature
58
CVE Score
Medium
Improper Verification of Cryptographic Signature
The Caddy module signs tokens with static key material and uses it as an HMAC secret whenever it does not start with the literal "-----BEGIN" prefix. A PEM encoded public key preceded by an OpenSSL textual preamble does not start with that prefix, so the module uses those raw bytes as the HMAC secret instead of rejecting them, and anyone with the public key can forge tokens. The fix rejects key material that contains a PEM block anywhere, not only at the start, when the algorithm is HMAC.
Upgrade the github.com/dunglas/mercure/caddy and/or github.com/dunglas/mercure library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 1.0.0
Fixed in 1.0.1github.com/dunglas/mercure/caddy is vulnerable to Improper Verification of Cryptographic Signature in versions 0.0.1 - 1.0.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.