Description
CodeWhale versions before 0.8.64 contain an environment variable exposure vulnerability in the js_execution tool that fails to scrub parent process environment variables before spawning Node.js. Attackers can craft malicious JavaScript code executed by the tool to read process.env and leak API keys, cloud credentials, and authentication tokens back to the model context.
Published: 2026-08-18
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

CodeWhale versions prior to 0.8.64 allow an attacker who can supply JavaScript to the js_execution tool to execute arbitrary code that reads the parent process's environment variables. The executed code can then send private data such as API keys, cloud credentials, and authentication tokens back to the model context, resulting in sensitive information leakage.

Affected Systems

Vulnerable components include CodeWhale by Hmbown. Any deployment using CodeWhale before version 0.8.64 is susceptible.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, while the EPSS score is missing and the vulnerability is not listed in CISA KEV, so known exploitation data is not available. The likely attack vector is the execution of malicious JavaScript through the js_execution facility; this can be triggered by a local user with code injection privileges or potentially by a remote attacker if the tool is exposed to untrusted input points. Given the information exposure it can compromise confidentiality of secrets stored in process environment variables.

Generated by OpenCVE AI on August 18, 2026 at 16:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade CodeWhale to version 0.8.64 or later, where the js_execution tool scrubs parent environment variables before invoking Node.js.
  • If an upgrade is not yet possible, reconfigure the js_execution tool to clear or restrict process.env values prior to execution, and restrict JavaScript input to trusted sources only.
  • Perform regular audits of the environment to ensure no sensitive data is accidentally exposed through application logs or model context, and monitor for anomalous data flows in and out of the js_execution tool.

Generated by OpenCVE AI on August 18, 2026 at 16:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-h539-c7r8-3xq4 CodeWhale: js_execution leaks parent environment to model context via missing env scrub
History

Tue, 18 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Hmbown
Hmbown codewhale
Vendors & Products Hmbown
Hmbown codewhale

Tue, 18 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 18 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Description CodeWhale versions before 0.8.64 contain an environment variable exposure vulnerability in the js_execution tool that fails to scrub parent process environment variables before spawning Node.js. Attackers can craft malicious JavaScript code executed by the tool to read process.env and leak API keys, cloud credentials, and authentication tokens back to the model context.
Title CodeWhale before 0.8.64 Environment Variable Leak via js_execution
Weaknesses CWE-200
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

Hmbown Codewhale
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-18T15:36:49.746Z

Reserved: 2026-08-18T15:05:54.225Z

Link: CVE-2026-75915

cve-icon Vulnrichment

Updated: 2026-08-18T15:36:44.183Z

cve-icon NVD

Status : Received

Published: 2026-08-18T16:18:23.970

Modified: 2026-08-18T16:18:23.970

Link: CVE-2026-75915

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T18:15:04Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor