Intel

AIKIDO-2026-615271

github.com/dunglas/mercure/caddy is vulnerable to Improper Verification of Cryptographic Signature

GHSA-pwm3-wvjf-p5rjPublished Oct 13, 2026
October 13, 2026

58

CVE Score

Medium

Improper Verification of Cryptographic Signature

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the github.com/dunglas/mercure/caddy and/or github.com/dunglas/mercure library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.1 - 1.0.0

Fixed in 1.0.1

Background info

github.com/dunglas/mercure/caddy is vulnerable to Improper Verification of Cryptographic Signature in versions 0.0.1 - 1.0.0.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea