hashi-vault-js: Vault token and secret values exposed in thrown errors (CVE-2026-55102)
The hashi-vault-js library versions prior to 0.5.2 expose Vault tokens and secret values in thrown errors. This occurs because the library rethrows raw Axios errors that include sensitive information such as the X-Vault-Token header and request body data. Applications that log these errors may inadvertently expose sensitive credentials in logs and monitoring systems. A fix is available to redact sensitive data before throwing errors. Users should upgrade to a patched version or sanitize errors before logging.
AI Analysis
Technical Summary
In hashi-vault-js versions before 0.5.2, every API method throws raw Axios errors containing the full Axios configuration, including the X-Vault-Token header and request body data. This leads to exposure of Vault tokens, passwords, and secret values in error logs when consuming applications log these exceptions. The vulnerability arises from improper handling of error objects that include sensitive information. The recommended remediation is to redact sensitive headers and data from errors before rethrowing or to throw sanitized errors containing only safe properties such as status and message.
Potential Impact
Sensitive Vault tokens and secret values can be exposed in plaintext within application logs, monitoring services, and application performance monitoring systems if the consuming application logs the raw errors thrown by hashi-vault-js. This exposure may lead to unauthorized access or authorization bypass of the Vault instance if attackers gain access to these logs or monitoring data.
Mitigation Recommendations
A patch is available that addresses this vulnerability by redacting sensitive information from error objects before they are thrown. Users should upgrade to version 0.5.2 or later that includes this fix. If immediate upgrade is not possible, users should implement a workaround by capturing all exceptions thrown by hashi-vault-js and sanitizing or omitting the err.config object before passing errors to logging or crash reporting tools.
hashi-vault-js: Vault token and secret values exposed in thrown errors (CVE-2026-55102)
Description
The hashi-vault-js library versions prior to 0.5.2 expose Vault tokens and secret values in thrown errors. This occurs because the library rethrows raw Axios errors that include sensitive information such as the X-Vault-Token header and request body data. Applications that log these errors may inadvertently expose sensitive credentials in logs and monitoring systems. A fix is available to redact sensitive data before throwing errors. Users should upgrade to a patched version or sanitize errors before logging.
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
In hashi-vault-js versions before 0.5.2, every API method throws raw Axios errors containing the full Axios configuration, including the X-Vault-Token header and request body data. This leads to exposure of Vault tokens, passwords, and secret values in error logs when consuming applications log these exceptions. The vulnerability arises from improper handling of error objects that include sensitive information. The recommended remediation is to redact sensitive headers and data from errors before rethrowing or to throw sanitized errors containing only safe properties such as status and message.
Potential Impact
Sensitive Vault tokens and secret values can be exposed in plaintext within application logs, monitoring services, and application performance monitoring systems if the consuming application logs the raw errors thrown by hashi-vault-js. This exposure may lead to unauthorized access or authorization bypass of the Vault instance if attackers gain access to these logs or monitoring data.
Mitigation Recommendations
A patch is available that addresses this vulnerability by redacting sensitive information from error objects before they are thrown. Users should upgrade to version 0.5.2 or later that includes this fix. If immediate upgrade is not possible, users should implement a workaround by capturing all exceptions thrown by hashi-vault-js and sanitizing or omitting the err.config object before passing errors to logging or crash reporting tools.
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
- Cvss Version
- null
Threat ID: 6a7e0370bf8831d5398f94bf
Added to database: 08/13/2026, 17:48:32 UTC
Last enriched: 08/13/2026, 18:11:30 UTC
Last updated: 08/13/2026, 18:11:30 UTC
Views: 3
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.