{"id":"CVE-2026-45091","aliases":["CVE-2026-45091","GHSA-x3r2-fj3r-g5mv"],"related":[],"kind":"vulnerability","state":"published","title":"sealed-env: TOTP secret embedded in unseal token payload (enterprise mode)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nAn 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.\n\nPatched 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.\n\nReported 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-12T13:20:21.560Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-200","CWE-522"],"affected":[{"ranges":[{"version":"< 0.1.0-alpha.4","status":"affected"}],"vendor":"davidalmeidac","product":"sealed-env","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.0-alpha.4"}],"ecosystem":"npm","package":"sealed-env","purl":"pkg:npm/sealed-env","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.0-alpha.4"}],"ecosystem":"Maven","package":"io.github.davidalmeidac:sealed-env-core","purl":"pkg:maven/io.github.davidalmeidac/sealed-env-core","source":"ghsa"}],"references":[{"url":"https://github.com/davidalmeidac/sealed-env/security/advisories/GHSA-x3r2-fj3r-g5mv","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45091","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/davidalmeidac/sealed-env","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-12T14:38:56.109Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45091","url":"https://www.cve.org/CVERecord?id=CVE-2026-45091","licence":"CVE Terms of Use","modified":"2026-05-12T14:39:10.904Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x3r2-fj3r-g5mv","url":"https://github.com/advisories/GHSA-x3r2-fj3r-g5mv","licence":"CC-BY-4.0","modified":"2026-05-13T16:39:07.230Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45091","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45091","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:21.353Z","epss":{"score":0.00374,"percentile":0.33399,"date":"2026-12-01T12:00:22.000Z"}}