CVE-2026-64682: AstroBlocks: Admin session tokens can be forged due to a hard-coded fallback JWT secret and a mismatched environment variable name
Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-11
Description
AstroBlocks is a block-first CMS for Astro projects. Prior to version 3.4.0, admin session tokens can be forged due to a hard-coded fallback JWT secret and a mismatched environment variable name. An attacker who knows the public fallback value (readable in the published package) can forge a valid session token with role: "owner" and obtain full administrative control of the CMS — creating/deleting content, users, media, redirects, and configuration. This issue has been patched in version 3.4.0.
Enclave's analysis
AstroBlocks, a CMS for Astro, signs admin session tokens with a public hard-coded fallback secret. The docs named a different environment variable than the code reads, so many installs likely run on the fallback. Anyone who can reach /cms can forge an owner token and take over the CMS. No exploitation reports found. Upgrade to 3.4.0 and set a strong secret.
Fix
Upgrade AstroBlocks (@astroblocks/astro-blocks) to 3.4.0. No fixed version is listed for astro-blocks; follow the vendor advisory.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| astro-blocks | < 3.4.0 | Not listed |
| AstroBlocks (@astroblocks/astro-blocks) | < 3.4.0 (authentication introduced in 0.3.0; 3.3.2 is the latest affected release) | 3.4.0 |