Impact
The vulnerability arises when the AshAi vectorize function fails and the raw embedding‑provider error message is inserted directly into a user‑facing validation error. The unfiltered error string can contain the request URL, provider response body and, in some HTTP clients, the outbound Authorization header that holds the provider API key. This allows attackers to acquire secret credentials and other sensitive request information by triggering the failure path through oversized or malformed vectorized content. The flaw is a classic example of CWE‑209, data exposure through error messages.
Affected Systems
The issue affects the ash‑project ash_ai library for all releases from 0.1.0 up to, but excluding, 1.0.0. Versions earlier than 0.1.0 are not impacted, and releases 1.0.0 and later incorporate the fix that logs the raw error but returns a generic message.
Risk and Exploitability
The CVSS score of 7.1 indicates high severity, and the vulnerability is not currently listed in the CISA KEV catalog. EPSS data is not available, so the exact exploitation likelihood cannot be quantified, but the weakness remains exploitable by sending crafted content that forces a provider request to fail. The fix involves sanitizing the error before it reaches the API layer, which mitigates the risk of leaking credentials or request details to end users.
OpenCVE Enrichment