Skip to main content

hashi-vault-js EUVDEUVD-2026-51575

| CVE-2026-55100 HIGH
Relative Path Traversal (CWE-23)
2026-07-31 https://github.com/kyndryl-open-source/hashi-vault-js GHSA-g956-2f74-rmv7
8.7
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. Access
    Supply crafted identifier to application input
  2. Delivery
    Application passes unsanitized value to hashi-vault-js method
  3. Exploit
    Library interpolates payload into Vault API URL without encoding
  4. Execution
    HTTP client normalizes traversal path
  5. Persist
    Request reaches unintended Vault endpoint
  6. Impact
    Operation executes under application Vault token permissions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
Exploitation Conditions

Exploitation requires that externally influenced input - such as a secret name, username, group name, role name, or version value - is passed directly to a hashi-vault-js API method by the calling application without prior validation or encoding. The critical prerequisite is an application design that exposes Vault identifier selection to user-controlled data (e.g., a web endpoint that accepts a secret name as a query parameter and passes it to the library). Applications that derive all Vault identifiers from internal constants or configuration, with no user-controlled values reaching library calls, are not exploitable. Exploitation impact is further bounded by the Vault token's permission policy: the attacker can only trigger operations on Vault paths the token is authorized to access. Required conditions limiting exploitation: user input must reach library method arguments; the application's Vault token must have permissions on the target endpoint for the redirected request to succeed; and the application must have a network-accessible interface accepting attacker-controlled input.

Impact

No official CVSS score has been assigned; all metrics below are independently assessed. Real-world risk is conditional but meaningful: exploitation requires that user-controlled input flows into hashi-vault-js method calls without prior validation - an architectural assumption the library's design historically invited. The impact ceiling is determined by the Vault token scoped to the application: a broadly-privileged token (common in internal tooling) permits sealing Vault (availability impact), reading secrets outside the intended path (confidentiality), or modifying unintended resources (integrity). A narrowly scoped token substantially limits blast radius. No EPSS data is available, and the absence of a KEV listing indicates no confirmed mass exploitation. However, the GHSA advisory includes concrete, dynamically verified payloads, which lowers the barrier for exploitation in any application that passes untrusted input to the library. The conditional prerequisite (user input reaching library methods) represents the primary limiting factor and distinguishes this from a trivially exploitable network-exposed flaw.

Exploit ScenarioDerived

An attacker submits the string ../../sys/seal as a secret name through an application feature that looks up Vault secrets based on user input. The hashi-vault-js library concatenates this value unencoded into the Vault API URL; the HTTP client normalizes the path, and the resulting request hits /v1/sys/seal using the application's Vault token, sealing the Vault and causing a denial-of-service condition. In a second scenario, the attacker injects 1&list=true as a version parameter, causing the library to emit an unintended list=true query parameter that alters the API operation executed against Vault.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 31, 2026

Path traversal and query parameter injection in hashi-vault-js (npm, versions ≤ 0.5.1) allow an attacker who can influence identifiers passed to the library to redirect Vault API requests to arbitrary endpoints - including administrative paths such as /v1/sys/seal - or inject unauthorized query parameters, all executed under the permissions of the application's configured Vault token. The vulnerability arises because Vault.js contains zero calls to encodeURIComponent(), concatenating every caller-supplied identifier directly into HTTP URL strings. Two attack vectors are dynamically confirmed in the GHSA advisory: path traversal via ../../sys/seal as a secret name, and query injection via 1&list=true as a version value. No public standalone exploit tool has been identified and this CVE is not listed in the CISA KEV catalog.

RemediationAI

Upgrade hashi-vault-js to version 0.5.2, which resolves both attack vectors by applying encodeURIComponent() to all path-segment identifiers and replacing manual query-string concatenation with safe parameter formatting, as confirmed by PR #66 (https://github.com/kyndryl-open-source/hashi-vault-js/pull/66) and commit ea2f76052d366a08f35f62ef4c12b6a334c91ec2. If an immediate upgrade is not feasible, apply strict allowlist validation before passing any identifier to library methods: reject inputs containing /, ., &, =, ?, or % characters - note that an incomplete allowlist may still leave injection vectors open. Alternatively, manually wrap all caller-supplied identifiers with encodeURIComponent() before passing them to library functions. As a defense-in-depth measure, restrict the application's Vault token to the minimum required paths and capabilities so that even if traversal succeeds, the token cannot reach sensitive sys/ endpoints such as sys/seal or sys/unseal.

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

The affected package is hashi-vault-js (CPE: pkg:npm/hashi-vault-js), a Node.js client library that wraps the HashiCorp Vault HTTP API. The root cause is CWE-23 (Relative Path Traversal), compounded by query-string injection through unsafe string concatenation. Vault.js builds every API URL by directly interpolating caller-supplied parameters - secret names, usernames, group names, role names, version numbers - into URL path segments and query strings without invoking encodeURIComponent() or any equivalent sanitization. HTTP clients normalize dot-segment sequences in paths (../../), so a traversal payload resolves outside the intended KV mount point and reaches unintended Vault API namespaces including the privileged sys/ tree. The fix in version 0.5.2, confirmed by PR #66 and commit ea2f760, wraps all path-segment identifiers with encodeURIComponent() and replaces manual query-string concatenation with safe parameter formatting.

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 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 9.0 CRITICAL

AV:N because attacker reaches the app over the network; AC:H because exploitation requires user input to flow into library calls; S:C because the impacted component (Vault server) is a separate system from the vulnerable library.

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

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
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Summary

The hashi-vault-js library is vulnerable to path traversal and query string injection due to the lack of proper encoding of identifiers in path segments and query strings. This allows attackers to manipulate the request URL and potentially access unintended downstream endpoints or inject malicious parameters if untrusted input is passed to the library.

Details

There are zero calls to encodeURIComponent anywhere in Vault.js. Every identifier (e.g., name, username, group, role, version) provided to the library is concatenated straight into the HTTP URL without URI encoding.

Two vectors can be dynamically confirmed:

  1. Path Traversal: Passing ../../sys/seal as a secret name causes the HTTP client to normalize the path and send the request to /v1/sys/seal instead of the intended Key-Value path.
  2. Query Injection: Passing 1&list=true as a version value injects an extra query parameter into the request payload.

Impact

In applications where Vault identifiers originate from untrusted user input, this allows an unauthenticated attacker to redirect requests to unintended Vault endpoints (including administrative paths under sys/) or otherwise alter the executed query, executing operations within the permissions of the Vault token used by the application.

Patches

This vulnerability has been addressed by wrapping path segments with encodeURIComponent() and safely formatting query strings instead of manual string concatenation. Users should upgrade to a version that includes this fix.

Workarounds

If you cannot immediately update the library, you can mitigate this issue by rigidly validating and sanitizing all user-supplied input before passing it into hashi-vault-js methods. Alternatively, manually encode inputs using encodeURIComponent() before supply them to the library's functions.

Acknowledgements

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

Executive ViewAI

Why It Matters

hashi-vault-js through version 0.5.1 contains vulnerabilities that could allow attackers to disrupt Vault operations or access unauthorized administrative functions, with potential exposure across the organization's secrets management infrastructure; no public exploit identified at time of analysis. Applications using this library risk unauthorized Vault access if they process any external input related to secret identifiers. Leadership should prioritize immediate patching to secure the enterprise's credential infrastructure.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Low
niche Node.js library for HashiCorp Vault API integration
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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 HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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