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.
Published: 2026-09-14
Score: 5.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Credential Exposure
Action: Apply Patch
AI Analysis

Impact

The vulnerability manifests when failed API calls in the Node.js library rethrow an AxiosError that still contains the request configuration and response. These objects can include the Vault token in the X‑Vault‑Token header and secret/password data in the request body. When an application logs or otherwise exposes the error, the live credential can be written in plaintext to logs or monitoring services, allowing an attacker to retrieve a working Vault token. With that token, an attacker can access the Vault instance according to the token’s policy, potentially reading or modifying secrets, resources, or infrastructure state.

Affected Systems

The affected component is the hashi‑vault‑js library (kyndryl‑open‑source:hashi‑vault‑js). All releases earlier than 0.5.2 are vulnerable; the fix was introduced in version 0.5.2.

Risk and Exploitability

The CVSS score is 5.8, indicating moderate severity. The EPSS score is less than 1%, indicating a very low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, suggesting it has not yet been widely exploited. The attack requires an application that logs errors and an attacker who can read those logs or monitoring output. If such access is obtained, the exposed token provides direct authentication to the Vault, enabling further abuse of the environment.

Generated by OpenCVE AI on September 21, 2026 at 00:04 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update hashi‑vault‑js to version 0.5.2 or later.
  • Review application logs and monitoring to ensure no Vault tokens or secret payloads are exposed.
  • Restrict read access to log files and monitoring systems to trusted personnel only.

Generated by OpenCVE AI on September 21, 2026 at 00:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-5pq8-3ffp-7w5m hashi-vault-js: Vault token and secret values exposed in thrown errors
History

Tue, 15 Sep 2026 05:45:00 +0000

Type Values Removed Values Added
First Time appeared Kyndryl-open-source
Kyndryl-open-source hashi-vault-js
Vendors & Products Kyndryl-open-source
Kyndryl-open-source hashi-vault-js

Mon, 14 Sep 2026 21:00:00 +0000

Type Values Removed Values Added
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.
Title hashi-vault-js: Vault token and secret values exposed in thrown errors
Weaknesses CWE-209
CWE-532
References
Metrics cvssV4_0

{'score': 5.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Subscriptions

Kyndryl-open-source Hashi-vault-js
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-14T17:18:55.696Z

Reserved: 2026-06-16T14:41:54.579Z

Link: CVE-2026-55102

cve-icon Vulnrichment

Updated: 2026-09-14T17:18:51.810Z

cve-icon NVD

Status : Deferred

Published: 2026-09-14T17:17:47.930

Modified: 2026-09-30T19:57:08.043

Link: CVE-2026-55102

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-21T00:15:06Z

Weaknesses
  • CWE-209

    Generation of Error Message Containing Sensitive Information

  • CWE-532

    Insertion of Sensitive Information into Log File