hashi-vault-js: Vault token and secret values exposed in thrown errors (CVE-2026-55102)
hashi-vault-js is a Node.js module for interacting with the HashiCorp Vault API. Prior to 0.5.2, every API method in src/Vault.js passes failed requests through parseAxiosError(), which rethrows the raw AxiosError while retaining AxiosError.config and the equivalent response configuration. These objects can contain the X-Vault-Token request header and err.config.data request body, including submitted passwords or secret values. When a consuming application records the caught exception through console logging, structured loggers, monitoring, crash reporting, or an application performance monitoring service, the live Vault token and request secrets can be stored in plaintext and exposed to anyone with access to that output. A stolen token can permit unauthorized access to the Vault instance under the token's policies. This issue is fixed in version 0.5.2.
AI Analysis
Technical Summary
The Node.js module hashi-vault-js, used to interact with HashiCorp Vault, improperly exposes sensitive information in thrown errors prior to version 0.5.2. Specifically, the parseAxiosError() function rethrows raw AxiosError objects containing the X-Vault-Token header and request body data, which may include passwords or secret values. Applications that log or report these errors risk leaking live Vault tokens and secrets in plaintext. Such exposure can lead to unauthorized access to the Vault instance under the compromised token's policies. The vulnerability is addressed by updating to version 0.5.2.
Potential Impact
Exposed Vault tokens and secret values in error logs or monitoring outputs can lead to unauthorized access to the Vault instance with the privileges of the stolen token. This compromises the confidentiality of secrets managed by Vault. The impact is medium severity given the potential for sensitive data exposure and unauthorized access, but exploitation requires access to error logs or monitoring outputs.
Mitigation Recommendations
Upgrade hashi-vault-js to version 0.5.2 or later, where the issue is fixed. Avoid logging or exposing raw error objects that may contain sensitive Vault tokens or secrets. Review and sanitize error handling and logging practices to prevent sensitive data leakage.
hashi-vault-js: Vault token and secret values exposed in thrown errors (CVE-2026-55102)
Description
hashi-vault-js is a Node.js module for interacting with the HashiCorp Vault API. Prior to 0.5.2, every API method in src/Vault.js passes failed requests through parseAxiosError(), which rethrows the raw AxiosError while retaining AxiosError.config and the equivalent response configuration. These objects can contain the X-Vault-Token request header and err.config.data request body, including submitted passwords or secret values. When a consuming application records the caught exception through console logging, structured loggers, monitoring, crash reporting, or an application performance monitoring service, the live Vault token and request secrets can be stored in plaintext and exposed to anyone with access to that output. A stolen token can permit unauthorized access to the Vault instance under the token's policies. This issue is fixed in version 0.5.2.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Node.js module hashi-vault-js, used to interact with HashiCorp Vault, improperly exposes sensitive information in thrown errors prior to version 0.5.2. Specifically, the parseAxiosError() function rethrows raw AxiosError objects containing the X-Vault-Token header and request body data, which may include passwords or secret values. Applications that log or report these errors risk leaking live Vault tokens and secrets in plaintext. Such exposure can lead to unauthorized access to the Vault instance under the compromised token's policies. The vulnerability is addressed by updating to version 0.5.2.
Potential Impact
Exposed Vault tokens and secret values in error logs or monitoring outputs can lead to unauthorized access to the Vault instance with the privileges of the stolen token. This compromises the confidentiality of secrets managed by Vault. The impact is medium severity given the potential for sensitive data exposure and unauthorized access, but exploitation requires access to error logs or monitoring outputs.
Mitigation Recommendations
Upgrade hashi-vault-js to version 0.5.2 or later, where the issue is fixed. Avoid logging or exposing raw error objects that may contain sensitive Vault tokens or secrets. Review and sanitize error handling and logging practices to prevent sensitive data leakage.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5pq8-3ffp-7w5m
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55102"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
Threat ID: 6a7e0370bf8831d5398f94bf
Added to database: 08/13/2026, 17:48:32 UTC
Last enriched: 09/14/2026, 22:13:34 UTC
Last updated: 09/29/2026, 01:47:43 UTC
Views: 63
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.