9.1critical
sealed-env: TOTP secret embedded in unseal token payload (enterprise mode)
- Severity
- 9.1critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.37% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-x3r2-fj3r-g5mv
Description
sealed-env is a cross-stack, zero-trust secret management library for Node.js and Java/Spring Boot. In sealed-env enterprise mode, versions 0.1.0-alpha.1 through 0.1.0-alpha.3 embedded the operator's literal TOTP secret in the JWS payload of every minted unseal token. JWS payload is base64-encoded JSON, NOT encrypted. Any party who could observe a minted token (CI build logs, container env dumps, kubectl describe pod, Sentry/Rollbar stack traces, log aggregators) could decode the payload and extract the TOTP secret in plaintext. This vulnerability is fixed in 0.1.0-alpha.4.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| davidalmeidac sealed-env | < 0.1.0-alpha.4 | CVE List |
| sealed-env (npm) | before 0.1.0-alpha.4 | GitHub Advisory Database |
| io.github.davidalmeidac:sealed-env-core (Maven) | before 0.1.0-alpha.4 | GitHub Advisory Database |
All scores
| GitHub_M | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
What each source says
CVE List
sealed-env is a cross-stack, zero-trust secret management library for Node.js and Java/Spring Boot. In sealed-env enterprise mode, versions 0.1.0-alpha.1 through 0.1.0-alpha.3 embedded the operator's literal TOTP secret in the JWS payload of every minted unseal token. JWS payload is base64-encoded JSON, NOT encrypted. Any party who could observe a minted token (CI build logs, container env dumps, kubectl describe pod, Sentry/Rollbar stack traces, log aggregators) could decode the payload and extract the TOTP secret in plaintext. This vulnerability is fixed in 0.1.0-alpha.4.
GitHub Advisory Database
In sealed-env enterprise mode, versions 0.1.0-alpha.1 through 0.1.0-alpha.3 embedded the operator's literal TOTP secret in the JWS payload of every minted unseal token. JWS payload is base64-encoded JSON, NOT encrypted. Any party who could observe a minted token (CI build logs, container env dumps, kubectl describe pod, Sentry/Rollbar stack traces, log aggregators) could decode the payload and extract the TOTP secret in plaintext.
An attacker with (a) the master key (e.g. from a separate compromise such as a leaked CI secret) and (b) any single leaked unseal token can use the extracted TOTP secret to mint new valid unseal tokens for any future deploy indefinitely, breaking the second-factor property the library claimed.
Patched in 0.1.0-alpha.4 by replacing the embedded secret with a salt-bound HMAC derivative (enterprise_epoch = HMAC(totpSecret, salt || "epoch-v1")). The TOTP secret never leaves the operator's machine in the new design. The wire format change is incompatible — files sealed by affected versions must be re-sealed and the TOTP secret rotated. Full migration playbook in CHANGELOG.md.
Reported by an external reviewer who decoded the payload of a real minted token and confirmed bit-for-bit equality with the operator's .env.local TOTP secret.
NVD (es)
sealed-env es una biblioteca de gestión de secretos de confianza cero y de pila cruzada para Node.js y Java/Spring Boot. En el modo empresarial de sealed-env, las versiones 0.1.0-alpha.1 a la 0.1.0-alpha.3 incrustaron el secreto TOTP literal del operador en la carga útil JWS de cada token de desprecintado emitido. La carga útil JWS es JSON codificado en base64, NO cifrado. Cualquier parte que pudiera observar un token emitido (registros de compilación de CI, volcados de entorno de contenedor, kubectl describe pod, rastreos de pila de Sentry/Rollbar, agregadores de registros) podría decodificar la carga útil y extraer el secreto TOTP en texto plano. Esta vulnerabilidad está corregida en la 0.1.0-alpha.4.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-45091 changed 2026-05-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x3r2-fj3r-g5mv changed 2026-05-13 | CC-BY-4.0 |
| NVD | CVE-2026-45091 changed 2026-10-26 | Public domain |