Summary
CVE-2026-64682 is a critical authentication bypass vulnerability in AstroBlocks (npm package astro-blocks, a block-first CMS for Astro projects). Administrative session tokens can be forged because of a hard-coded fallback JWT secret and a mismatched environment variable name. The vulnerability has a CVSS v3.1 base score of 9.8 (Critical).
Technical details
- Root cause: Two combined flaws (CWE-321, CWE-798):
- A hard-coded fallback JWT signing secret is shipped publicly in the npm package.
- The code reads the
CMS_JWT_SECRETenvironment variable, while the documentation told users to setASTRO_BLOCKS_JWT_SECRET. Deployments that followed the documentation therefore silently used the public fallback secret.
- Trigger conditions: The deployment has no value set in
CMS_JWT_SECRET, so the fallback secret is used. - Attack vector: Network. No privileges or user interaction are required. An attacker who knows the publicly readable fallback secret can sign a valid administrative token.
- Impact: Forged admin tokens give an attacker complete control of the CMS (high impact on confidentiality, integrity and availability).
Affected software
- AstroBlocks (
astro-blocks, vendor NauelG) versions prior to 3.4.0. Authentication was introduced in 0.3.0, and 3.3.2 is the latest affected release, according to the vendor advisory.
Severity
- CVSS v3.1 base score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to AstroBlocks 3.4.0 or later. This version reads
ASTRO_BLOCKS_JWT_SECRET, withCMS_JWT_SECRETkept as a deprecated legacy alias. In production mode it returns 503 when no secret is configured, so the fallback is never used. - If you cannot upgrade immediately: Explicitly set
CMS_JWT_SECRETto a strong random value of 32 or more characters. - After remediation: Rotate the secret and invalidate existing tokens, so that any forged tokens stop working. Review admin activity for signs of unauthorized access.

