Improper Verification of Cryptographic Signature Affecting altcha package, versions <1.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-ALTCHA-14426455
  • published17 Dec 2025
  • disclosed16 Dec 2025
  • credit饺子w (Yumechi)

Introduced: 16 Dec 2025

CVE-2025-68113  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade altcha to version 1.0.0 or higher.

Overview

altcha is an A lightweight library for creating and verifying ALTCHA challenges.

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the HMAC computation. An attacker can bypass intended challenge expiration and reuse previously solved challenges by submitting a valid proof-of-work with a modified expiration value, potentially undermining abuse-prevention mechanisms such as rate limiting and bot mitigation.

Workaround

This vulnerability can be mitigated by appending a delimiter to the end of the salt value prior to HMAC computation (for example, <salt>?expires=<time>&), which prevents ambiguity between parameters and the nonce.

CVSS Base Scores

version 4.0
version 3.1