Skip to content
GSSA-2026-04-P1V3KVGITLAB-GSSA-2026-04-P1V3KVApril 25, 2026
5.9 Medium

Non-constant-time CSRF token comparison and lax hex parsing in cobc-events

The CSRF middleware in cobc-events <1.0.1 compared the cookie nonce with `!==` before the timing-safe HMAC check and accepted malformed hex input, leaking timing data and weakening token verification.

Affected (1)

  • gelhaus-solutionscobc-events
    • ≥ 0.0.0Fixed in 1.0.1

Mitigations

Workarounds

  • None — the CSRF mechanism cannot be safely disabled in production. Apply the upgrade.

Solutions

  • Upgrade cobc-events to 1.0.1 or later.

Overview

The CSRF middleware in cobc-events <1.0.1 compared the cookie nonce with !== before the timing-safe HMAC check and accepted malformed hex input, leaking timing data and weakening token verification.

Severity

CVSS v3
5.9 Medium
5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Weaknesses (3)

References (3)

Credits (5)

  • Enno Gelhaus
    Finder · egelhaus@ennogelhaus.de
  • Enno Gelhaus
    Analyst · egelhaus@ennogelhaus.de
  • Enno Gelhaus
    Remediation developer · egelhaus@ennogelhaus.de
  • Enno Gelhaus
    Remediation reviewer · egelhaus@ennogelhaus.de
  • Claude (Anthropic) — automated audit assistant
    Tool · https://claude.com

Context

Impacts

  • Side-channel weakening of CSRF protection

    CAPEC-189
  • Defence-in-depth bypass via malformed hex tokens

Timeline

  1. 04/25/2026 00:00

    Internal security audit started

  2. 04/25/2026 06:00

    Vulnerability identified during audit

  3. 04/25/2026 12:00

    Patch developed and merged to main

  4. 04/25/2026 14:00

    cobc-events 1.0.1 released

  5. 04/25/2026 15:00

    Advisory published

© 2026 Gelhaus Solutions