Vulnerabilities in pkg:maven/io.github.davidalmeidac/sealed-env-core

PACKAGE
Advisory Identifier: GHSA-x3r2-fj3r-g5mv
Advisory Summary

CVE-2026-45091 is a CRITICAL (CVSS 9.1) totp secret embedded vulnerability (CWE-522: Insufficiently Protected Credentials) affecting sealed-env libraries in the npm ecosystem. The issue involves totp secret embedded in unseal token payload (enterprise mode). Remediation is available by upgrading affected packages to version 0.1.0-alpha.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.github.davidalmeidac/sealed-env-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.github.davidalmeidac/sealed-env-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-x3r2-fj3r-g5mv CVE-2026-45091 CRITICAL sealed-env: TOTP secret embedded in unseal token payload (enterprise mode)

CVE-2026-45091 at a Glance

CVE Identifier CVE-2026-45091
GHSA Identifier GHSA-x3r2-fj3r-g5mv
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product sealed-env
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-45091

To remediate this vulnerability, upgrade all affected sealed-env dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sealed-env fixed: 0.1.0-alpha.4
npm install sealed-env@0.1.0-alpha.4
io.github.davidalmeidac:sealed-env-core fixed: 0.1.0-alpha.4
<dependency>
    <groupId>io.github.davidalmeidac</groupId>
    <artifactId>sealed-env-core</artifactId>
    <version>0.1.0-alpha.4</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls sealed-env

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-45091, inspect your project dependencies using npm:

npm ls sealed-env

Analyze the terminal output to locate any version of sealed-env in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.0-alpha.4), your application is affected.

Note: The npm ls sealed-env command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In sealed-env, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-45091 Affected sealed-env Versions

2 component(s)
Fixed Versions:
0.1.0-alpha.4
Product / Package Ecosystem Affected Versions Fixed Version
sealed-env
npm
< 0.1.0-alpha.4
0.1.0-alpha.4
io.github.davidalmeidac:sealed-env-core
Maven
< 0.1.0-alpha.4
0.1.0-alpha.4

References

Frequently Asked Questions

What is CVE-2026-45091?
CVE-2026-45091 is a security vulnerability in sealed-env involving TOTP secret embedded in unseal token payload (enterprise mode) under CWE-522: Insufficiently Protected Credentials.
Which sealed-env versions are affected?
Affected versions include releases prior to 0.1.0-alpha.4 across affected packages: sealed-env, io.github.davidalmeidac:sealed-env-core.
What version fixes CVE-2026-45091?
Upgrading to 0.1.0-alpha.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sealed-env affected?
Yes, sealed-env is affected in releases prior to 0.1.0-alpha.4. Upgrade your dependency to 0.1.0-alpha.4 or later.
Is sealed-env-core affected?
Yes, io.github.davidalmeidac:sealed-env-core is affected in releases prior to 0.1.0-alpha.4. Upgrade your dependency to 0.1.0-alpha.4 or later.
What is the CVSS score of CVE-2026-45091?
CVE-2026-45091 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-45091?
CVE-2026-45091 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check npm dependencies for CVE-2026-45091?
Run the dependency tree command: 'npm ls sealed-env'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x3r2-fj3r-g5mv",
  "modified" : "2026-05-13T16:24:37Z",
  "published" : "2026-05-12T15:09:08Z",
  "aliases" : [ "CVE-2026-45091" ],
  "summary" : "sealed-env: TOTP secret embedded in unseal token payload (enterprise mode)",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "sealed-env"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.0-alpha.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.github.davidalmeidac:sealed-env-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.0-alpha.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/davidalmeidac/sealed-env/security/advisories/GHSA-x3r2-fj3r-g5mv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45091"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/davidalmeidac/sealed-env"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-522" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-12T15:09:08Z",
    "nvd_published_at" : "2026-05-12T14:17:08Z"
  }
}