Skip to main content

hashi-vault-js EUVDEUVD-2026-77640

| CVE-2026-55102 MEDIUM
Error Message Information Leak (CWE-209)
2026-08-13 https://github.com/kyndryl-open-source/hashi-vault-js GHSA-5pq8-3ffp-7w5m
5.8
CVSS 4.0 · Vendor: https://github.com/kyndryl-open-source/hashi-vault-js
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Trigger Vault API error in target service
  2. Delivery
    AxiosError propagates with X-Vault-Token header intact
  3. Exploit
    Application logs raw error object to log aggregator
  4. Install
    Attacker reads log storage or APM platform
  5. C2
    Extracts plaintext Vault token from log entry
  6. Execute
    Authenticates to Vault API with harvested token
  7. Impact
    Enumerates and exfiltrates accessible secrets

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error message sanitization
MITRE ATT&CK

1 technique across 1 tactic: Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability is triggered when two conditions are met simultaneously: (1) the application uses any version of hashi-vault-js <= 0.5.1, and (2) at least one caught exception from the library is passed to any logging or error-reporting facility that serializes the error object (console.error, pino, winston, Sentry, Datadog APM, New Relic, or any APM SDK that captures exception context). No special Vault configuration is required-the token exposure occurs on any API error, including transient network failures, authentication errors, or Vault unavailability. Exploitation of the harvested credential is then limited by the privileges of the Vault token used by the application (PR:L or PR:H depending on the token's policy). Factors that limit real-world impact include: the attacker must have read access to the application's log storage or APM platform; the Vault token is only exposed during error-path execution rather than on every request; and token TTL policies in Vault may limit the window during which a harvested token remains valid.

Impact

Real-world risk is elevated beyond what the absence of a CVSS score might imply: any Node.js service using hashi-vault-js that routes exceptions to a log aggregator or APM will silently persist live Vault tokens in its log storage indefinitely. The practical attack surface is not network-adjacent code execution but log-level credential harvesting-a pattern commonly observed in supply chain and insider-threat scenarios. Even a mid-sized municipal IT team in walbrzych running a self-hosted observability stack (Grafana Loki, Sentry on-prem) would be exposing Vault root or service tokens to every user with log-read access, a group frequently much larger than the set of Vault administrators. The tags indicate potential authentication bypass as a downstream impact, which is accurate: a harvested Vault token can be replayed against the Vault API with the same privileges as the originating application. EPSS data is not available for this CVE at time of analysis. No KEV listing exists. Risk priority should be assessed based on how broadly exceptions from hashi-vault-js are captured by the application's logging stack-if all errors are logged (the common default), the token exposure is effectively guaranteed on any error-path execution.

Exploit ScenarioDerived

A Node.js microservice uses hashi-vault-js to read database credentials from HashiCorp Vault at startup. A transient network error causes the Vault API call to fail, and the application's global exception handler passes the caught error directly to its pino logger. The logger serializes the full error object-including err.config.headers['X-Vault-Token']-and ships it to a centralized log aggregation platform accessible to all members of the engineering team. An insider or attacker with log-read access retrieves the Vault token and uses it to enumerate and exfiltrate all secrets accessible to that service account. No public exploit code is needed; triggering the error path and reading the resulting log entry is sufficient.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 13, 2026

Credential exposure in hashi-vault-js (npm) leaks live HashiCorp Vault tokens and secret values into application logs and monitoring platforms via unredacted AxiosError objects. Every API method in the library re-throws the raw AxiosError, which carries the full Axios request configuration-including the X-Vault-Token authentication header and request body containing submitted passwords or secrets. Any consuming application that passes caught exceptions to logging utilities (console.error, pino, winston) or observability platforms (Sentry, APM agents) will persistently record live Vault credentials in plaintext. No public exploit has been identified at time of analysis, but the vulnerability is structurally trivial to trigger through normal error-path execution in any affected Node.js service.

RemediationAI

The primary remediation is to upgrade hashi-vault-js to version 0.5.2 or later, which addresses the issue by redacting err.config.headers['X-Vault-Token'] and err.config.data before re-throwing, or by throwing a purpose-built error containing only safe properties such as HTTP status and message. The advisory is at https://github.com/kyndryl-open-source/hashi-vault-js/security/advisories/GHSA-5pq8-3ffp-7w5m. For teams unable to upgrade immediately, the advisory recommends wrapping all calls to hashi-vault-js in a try/catch block and explicitly stripping or omitting the err.config object before passing the error to any logging utility, crash reporter, or APM agent-for example, rethrowing a new Error(err.message) without propagating the original AxiosError. Note that this workaround requires disciplined application of the sanitization pattern at every call site, and missing even one uncaught exception path will re-expose the token. Additionally, rotating any Vault tokens that may already have been logged should be treated as a parallel remediation step, not deferred until after patching.

Affected VersionsENISA

hashi-vault-js < 0.5.2

Affected Packages

npm hashi-vault-js fix: 0.5.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

hashi-vault-js is a Node.js client library (pkg:npm/hashi-vault-js) for the HashiCorp Vault secrets management API, maintained by Kyndryl Open Source. The library wraps Axios HTTP calls to the Vault REST API. When Axios encounters an HTTP error, it produces an AxiosError object whose .config property retains the full outgoing request configuration, including all headers and the serialized request body. The library's parseAxiosError helper returns this AxiosError object unmodified, and every API method calls throw parseAxiosError(err). This means the X-Vault-Token header (the primary Vault authentication credential) and err.config.data (containing write-path secrets such as passwords and KV values) are fully present in every thrown error object. CWE-532 (Insertion of Sensitive Information into Log File) captures the logging-surface exposure, while CWE-209 (Generation of Error Message Containing Sensitive Information) covers the root cause of including sensitive data in the thrown error itself. The affected package range is all versions up to and including 0.5.1; the fix is present in 0.5.2.

Know when Hashicorp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/kyndryl-open-source/hashi-vault-js) PRIMARY 5.8 MEDIUM
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
vuln.today AI 5.5 MEDIUM

Log-read access (PR:L, AV:L) required to harvest the exposed token; no integrity or availability impact from the disclosure itself.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/kyndryl-open-source/hashi-vault-js).

CVSS VectorVendor: https://github.com/kyndryl-open-source/hashi-vault-js

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Sep 14, 2026 - 17:22 NVD
5.8 (MEDIUM)

DescriptionCVE.org

Summary

Vault token and secret values are exposed in thrown errors when using hashi-vault-js.

Details

Every API method in Vault.js executes throw parseAxiosError(err), which returns the raw AxiosError untouched. That error carries the full Axios configuration, including the X-Vault-Token header and the request body. Consuming applications that log caught errors (e.g., using console.error, pino, winston, Sentry, or APMs) inadvertently log the live Vault token in plaintext. Furthermore, write-path methods expose submitted passwords and secret values via err.config.data.

Impact

When consuming applications log intercepted exceptions, sensitive credentials such as tokens, passwords, and secrets are unknowingly exposed to application logs, monitoring services, and APM systems via the raw AxiosError. This may lead to authorization bypass or unauthorized access to the underlying Vault instance.

Patches

This vulnerability should be addressed by redacting err.config.headers['X-Vault-Token'] and err.config.data before re-throwing, or by throwing a purpose-built error containing only safe properties like status and message. Users should upgrade to a version that includes this fix.

Workarounds

If users cannot immediately update the library, they can mitigate this issue by capturing all exceptions thrown by hashi-vault-js and sanitizing or omitting the err.config object before passing the errors to logging utilities or crash reporters.

Acknowledgements

hashi-vault-js would like to thank Sebastián Alba Vives for reporting this vulnerability.

Resources

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
niche Node.js Vault client, not primary Vault SDK
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2026-34976 CRITICAL POC
10.0 Apr 02

Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai

CVE-2021-30476 CRITICAL POC
9.8 Apr 22

HashiCorp Terraform’s Vault Provider (terraform-provider-vault) did not correctly configure GCE-type bound labels for Va

CVE-2019-7442 CRITICAL POC
9.8 May 08

An XML external entity (XXE) vulnerability in the Password Vault Web Access (PVWA) of CyberArk Enterprise Password Vault

CVE-2018-20371 CRITICAL POC
9.8 Dec 23

PhotoRange Photo Vault 1.2 appends the password to the URI for authorization, which makes it easier for remote attackers

CVE-2018-9843 CRITICAL POC
9.8 Apr 12

The REST API in CyberArk Password Vault Web Access before 9.9.5 and 10.x before 10.1 allows remote attackers to execute

CVE-2026-54725 CRITICAL POC
9.6 Jul 31

Server-side request forgery in bank-vaults vault-secrets-webhook (<= 1.22.2) lets a low-privileged tenant with ConfigMap

CVE-2026-60104 CRITICAL POC
9.3 Jul 08

Account takeover in self-hosted Bitwarden Server before 2026.6.0 lets a low-privileged organization member steal any oth

CVE-2021-43837 CRITICAL POC
9.1 Dec 16

vault-cli is a configurable command-line interface tool (and python library) to interact with Hashicorp Vault. Rated cri

CVE-2020-16272 CRITICAL POC
9.1 Aug 03

The SRP-6a implementation in Kee Vault KeePassRPC before 1.12.0 is missing validation for a client-provided parameter, w

CVE-2020-16271 CRITICAL POC
9.1 Aug 03

The SRP-6a implementation in Kee Vault KeePassRPC before 1.12.0 generates insufficiently random numbers, which allows re

CVE-2026-53727 HIGH POC
8.9 Jul 09

Server-side request forgery in the Ruby css_parser gem (< 3.0.0) lets a remote unauthenticated attacker force the parsin

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy