CVE-2026-116489: Timescale pgvectorscale (< 0.9.1) DiskANN Operator Class Type Confusion & Companion Frappe Builder / Frappe CRM AI Prompt & SSRF Suite (CVE-2026-115718, CVE-2026-115717, CVE-2026-115720, CVE-2026-116492)
Critical AI vector database and LLM-enabled web-builder vulnerability cluster flagged by VulnCheck Initial Access Intelligence on October 27, 2026. Under CVE-2026-116489 (CVSS 8.8 / VulnCheck Weaponized 9.5), Timescale pgvectorscale prior to version 0.9.1 defines DiskANN vector index operator classes with unqualified SQL references to pgvector types and trusts unvalidated typmod and metapage dimension metadata inside its Rust/pgrx native C-FFI layer when constructing raw memory slices. An attacker with database query/DDL access or a compromised multi-tenant RAG tenant can shadow the vector type via search_path or craft malformed index metadata to trigger type confusion, out-of-bounds memory disclosure, or PostgreSQL worker crashes. Dissected alongside Frappe Builder missing authorization on the AI improve_prompt endpoint (1.33.0 before 1.36.0, CVE-2026-115718), SSRF in convert_to_webp (< 1.36.1, CVE-2026-115717), HTTP redirect SSRF guard bypass (< 1.36.1, CVE-2026-115720), and Frappe CRM missing authorization on the Phone Lookup API (< 1.89.1, CVE-2026-116492).
HERMES THREAT SCORE & AGENTIC VECTOR DB / AI BUILDER EVALUATION
Target:Timescale pgvectorscale DiskANN Operator Classes & Rust Slice Constructors, Frappe Builder improve_prompt / convert_to_webp & Frappe CRM Phone Lookup API Standard CVSS v3.1 metrics score CVE-2026-116489 at 8.8 (High), whereas VulnCheck evaluates this weaponized AI vector database and LLM-enabled web-builder cluster at 9.5 (Critical). The Hermes Threat Score assigns 95 (CRITICAL) with a Hermes Agentic Security Score (HASS) of 96 (EXTREME). Timescale pgvectorscale is a high-performance Rust/pgrx PostgreSQL extension implementing StreamingDiskANN indices for production RAG and agentic memory stores. Because versions prior to 0.9.1 left SQL operator class references unqualified and trusted unvalidated typmod and metapage dimension metadata when constructing Rust memory slices, an attacker or compromised multi-tenant RAG role can shadow the vector type in search_path to trigger native C/Rust type confusion and out-of-bounds memory reads across the PostgreSQL process. Combined with Frappe Builder's unauthorized improve_prompt LLM endpoint (CVE-2026-115718), convert_to_webp SSRF (CVE-2026-115717), HTTP redirect SSRF guard bypass (CVE-2026-115720), and Frappe CRM's Phone Lookup API exposure (CVE-2026-116492), this cluster directly threatens AI vector databases and low-code AI builders.
CVE-2026-116489: Timescale pgvectorscale (< 0.9.1) DiskANN Operator Class Type Confusion & Companion Frappe Builder / Frappe CRM AI Prompt & SSRF Suite (CVE-2026-115718, CVE-2026-115717, CVE-2026-115720, CVE-2026-116492)VULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in CPython Interpreter & Standard Library documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
Adversary injects explicit formatting tags or role-inversion prompts directly into user input to strip system instructions and escape developer-enforced guardrails.
๐ Why is this related? (Evidence & Provenance)
“CVE-2026-116489 weaponizes the agentic attack pattern formalized under AAP-001.”
- [technical_analysis]Pillar Security demonstrated that executing export BASH_ENV in Auto-Run causes bash to source hostile payloads upon subsequent commands. — Source: Pillar Security Research: Bypassing Cursor Auto-Run: When Shell Built-ins Lead to Host RCE (Reliability: HIGH)
Attacker registers rogue MCP tools or skills with weaponized docstrings and deceptive metadata that trick the model into routing sensitive user tasks to attacker-controlled functions.
๐ Why is this related? (Evidence & Provenance)
“CVE-2026-116489 weaponizes the agentic attack pattern formalized under AAP-004.”
- [technical_analysis]Pillar Security demonstrated that executing export BASH_ENV in Auto-Run causes bash to source hostile payloads upon subsequent commands. — Source: Pillar Security Research: Bypassing Cursor Auto-Run: When Shell Built-ins Lead to Host RCE (Reliability: HIGH)
Executive Summary
Section titled โExecutive SummaryโOn October 27, 2026, VulnCheck Initial Access Intelligence published five high-priority weaponized advisories targeting PostgreSQL AI vector search extensions (Timescale pgvectorscale) and AI-assisted low-code web builders and enterprise CRM platforms (Frappe Builder and Frappe CRM):
- CVE-2026-116489 (
CWE-843/CWE-426, CVSS 8.8 High / VulnCheck 9.5 Weaponized โ Timescalepgvectorscale< 0.9.1Type Confusion via Unqualified DiskANN Operator Classes): Timescalepgvectorscale(timescale/pgvectorscale), the Rust-based (pgrx) PostgreSQL extension that adds StreamingDiskANN and Statistical Binary Quantization (SBQ) vector indexing on top ofpgvector, defined itsdiskannindex operator classes and SQL support functions using unqualified references tovector/halfvectypes and operators, while its native Rust index access method (amhandler) trusted unvalidatedtypmodand metapage dimension values when constructing raw memory slices (std::slice::from_raw_parts). An authenticated database user or compromised multi-tenant RAG service role can define a shadowing type or operator in an earliersearch_pathschemaโor pass mismatched vector datumsโto trigger type confusion (CWE-843), reading or corrupting out-of-bounds PostgreSQL backend memory. - CVE-2026-115718 (
CWE-862, CVSS 8.1 / VulnCheck 9.5 Weaponized โ Frappe Builder>= 1.33.0, < 1.36.0Missing Authorization viaimprove_prompt): In Frappe Builder (frappe/builder), the RPC endpointimprove_promptโwhich sends user prompts to the configured OpenAI/LLM backend to refine website generation promptsโlacked role and permission checks, allowing unauthenticated or low-privileged users to invoke the serverโs LLM integration, drain API quotas, or probe system prompt configurations (AAP-001/AAP-004). - CVE-2026-115717 & CVE-2026-115720 (
CWE-918, CVSS 8.6 / VulnCheck 9.5 Weaponized โ Frappe Builder< 1.36.1SSRF viaconvert_to_webp& SSRF Guard Bypass via HTTP Redirect): In Frappe Builder prior to1.36.1, theconvert_to_webpasset optimization handler accepted arbitrary remote URLs and fetched them server-side (CVE-2026-115717). Furthermore, even after initial URL validation was introduced, the HTTP client followed301/302/307redirects without re-validating the redirect target against internal/private IP ranges (CVE-2026-115720), enabling full SSRF against169.254.169.254(cloud IMDS) and loopback services. - CVE-2026-116492 (
CWE-862, CVSS 7.5 / VulnCheck 9.5 Weaponized โ Frappe CRM< 1.89.1Missing Authorization via Phone Lookup API): In Frappe CRM (frappe/crm) prior to1.89.1, the Phone Lookup API endpoint lacked authorization enforcement, exposing customer contact and telephony metadata to unauthorized callers.
Technical Root Cause Analysis & Code Dissection
Section titled โTechnical Root Cause Analysis & Code Dissectionโ1. CVE-2026-116489: Timescale pgvectorscale (< 0.9.1) DiskANN Type Confusion & Unvalidated Slice Construction
Section titled โ1. CVE-2026-116489: Timescale pgvectorscale (< 0.9.1) DiskANN Type Confusion & Unvalidated Slice Constructionโpgvectorscale implements the diskann index access method in Rust using pgrx. Prior to version 0.9.1 (patched in PR #280), two coupled vulnerabilities existed across the SQL/Rust boundary:
- Unqualified SQL Type & Operator Bindings (
CWE-426/CWE-843): Extension SQL scripts referencedvectorwithout qualifying the schema wherepgvectoris installed (@extschema:vector@), and the access method lacked anamvalidateverification routine ensuring that only genuinepgvectortypes (vector,halfvec) could be bound todiskannoperator classes. - Unvalidated
typmod& Metapage Dimensions in Native Slice Construction (CWE-843): In the Rust index build and scan paths, native code extracted the dimension count from the attributeโstypmodor index metapage and directly constructed a&[f32]slice from the PostgreSQLDatumpointer without verifying that the underlying varlena header size matcheddim * sizeof(f32):
// VULNERABLE PATTERN: Timescale pgvectorscale < 0.9.1 (CVE-2026-116489)// Component: DiskANN Index Access Method & Vector Datum Extraction (Rust / pgrx)use pgrx::prelude::*;
pub unsafe fn datum_to_vector_slice<'a>( datum: pg_sys::Datum, expected_dim: usize,) -> &'a [f32] { // 1. Unchecked cast: assumes `datum` is a valid pgvector `Vector` varlena struct // even if a custom operator class or shadowed search_path type passed a tiny bytea/int4! let vec_ptr = pg_sys::pg_detoast_datum(datum.cast_mut_ptr()) as *const VectorHeader; let raw_dim = (*vec_ptr).dim as usize;
// 2. FLAW (CWE-843): Trusts metapage `expected_dim` or unvalidated header `raw_dim` // without verifying VARSIZE_ANY_EXHDR(vec_ptr) >= expected_dim * std::mem::size_of::<f32>(). // Constructs an out-of-bounds &[f32] slice reading adjacent PostgreSQL backend heap memory! let data_ptr = (*vec_ptr).x.as_ptr(); std::slice::from_raw_parts(data_ptr, expected_dim)}In pgvectorscale 0.9.1 (PR #280), Timescale hardened the extension by:
- Enforcing schema-qualified bindings to
pgvector(@extschema:vector@), - Implementing
amvalidateto reject any custom or forged operator class bindings ondiskannindices, and - Validating the varlena byte length, dimension bounds, and metapage metadata before constructing Rust slices.
2. CVE-2026-115718, CVE-2026-115717 & CVE-2026-115720: Frappe Builder AI improve_prompt & Redirect SSRF Chain
Section titled โ2. CVE-2026-115718, CVE-2026-115717 & CVE-2026-115720: Frappe Builder AI improve_prompt & Redirect SSRF ChainโIn Frappe Builder, Python methods decorated with @frappe.whitelist() are exposed over HTTP at /api/method/builder.<module>.<function>:
# VULNERABLE PATTERN: Frappe Builder < 1.36.0 / < 1.36.1# CVE-2026-115718 (Missing Auth on improve_prompt) & CVE-2026-115717 / CVE-2026-115720 (SSRF in convert_to_webp)import frappeimport requestsfrom PIL import Imagefrom io import BytesIO
# 1. CVE-2026-115718: Missing role/permission check on AI prompt helper (1.33.0 <= v < 1.36.0)@frappe.whitelist()def improve_prompt(prompt: str) -> str: # Any low-privileged or guest session (if allow_guest or portal user) can invoke the LLM # without verifying "Builder User" / "System Manager" permissions! return call_configured_llm_provider(prompt)
# 2. CVE-2026-115717 & CVE-2026-115720: SSRF via convert_to_webp & HTTP Redirect Guard Bypass (< 1.36.1)@frappe.whitelist()def convert_to_webp(image_url: str) -> str: # Pre-flight SSRF check validates only the initial `image_url` (e.g., https://attacker.com/img.png) validate_safe_external_url(image_url)
# FLAW (CVE-2026-115720): requests.get() defaults to allow_redirects=True! # Attacker responds with `HTTP/1.1 302 Found\r\nLocation: http://169.254.169.254/latest/meta-data/` # bypassing validate_safe_external_url() and hitting internal cloud metadata / loopback services. resp = requests.get(image_url, timeout=10) img = Image.open(BytesIO(resp.content)) # ...flowchart TD subgraph PgVectorScale["CVE-2026-116489: Timescale pgvectorscale (< 0.9.1) DiskANN Type Confusion"] P1["Attacker / Multi-Tenant Role Manipulates search_path or Custom DiskANN OpClass"] P2["Unqualified SQL Binding Passes Non-Vector Datum or Forged typmod to Rust FFI"] P3["datum_to_vector_slice() Calls slice::from_raw_parts() Without Varlena Size Check"] P4["Out-of-Bounds Heap Memory Disclosure in Vector Distance Scan or Backend Crash"] P1 --> P2 --> P3 --> P4 end
subgraph FrappeSuite["CVE-2026-115718 / 115717 / 115720 (Frappe Builder) & CVE-2026-116492 (Frappe CRM)"] F1["CVE-2026-115718: Unauthorized POST /api/method/...improve_prompt -> LLM Quota / Prompt Abuse"] F2["CVE-2026-115717 / 115720: convert_to_webp Fetches External URL -> 302 Redirect to 169.254.169.254"] F3["CVE-2026-116492: Unauthorized Frappe CRM Phone Lookup API -> Contact PII Exfiltration"] end
style P3 fill:#ff1a1a,stroke:#800000,color:#ffffff style P4 fill:#ff4d4d,stroke:#990000,color:#ffffff style F1 fill:#ff6600,stroke:#993300,color:#ffffff style F2 fill:#ff1a1a,stroke:#800000,color:#ffffffForensic Analysis & Detection Engineering
Section titled โForensic Analysis & Detection EngineeringโTo detect exploitation of Timescale pgvectorscale DiskANN type confusion (CVE-2026-116489) and Frappe Builder / Frappe CRM API abuse (CVE-2026-115718, CVE-2026-115717, CVE-2026-115720, CVE-2026-116492), deploy the following multi-layered detection suite:
title: Frappe Builder SSRF / AI Prompt Abuse & Timescale pgvectorscale DiskANN Exploitation (CVE-2026-116489 / CVE-2026-115718 / CVE-2026-115720)id: 116489a1-2026-4d77-8a22-pgvectorfrappe27status: experimentaldescription: Detects requests targeting Frappe Builder improve_prompt or convert_to_webp SSRF endpoints, Frappe CRM phone lookup endpoints, or PostgreSQL DDL creating custom operator classes on the diskann access method.references: - https://vulncheck.com/advisories/timescale-pgvectorscale-before-0.9.1-type-confusion-via-unqualified-diskann-operator-classes - https://vulncheck.com/advisories/frappe-builder-before-missing-authorization-via-improve-prompt - https://vulncheck.com/advisories/frappe-builder-before-ssrf-guard-bypass-via-http-redirect - https://vulncheck.com/advisories/frappe-crm-before-missing-authorization-via-phone-lookup-apiauthor: Hermes Threat Intelligencedate: 2026/10/27logsource: category: webserverdetection: selection_frappe_endpoints: cs-uri-stem|contains: - '/api/method/builder.' - 'improve_prompt' - 'convert_to_webp' - 'phone_lookup' condition: selection_frappe_endpointsfalsepositives: - Authenticated site designers actively using Frappe Builder in the administrative workspacelevel: hightags: - attack.initial_access - attack.t1190 - cve.2026-116489 - cve.2026-115718 - cve.2026-115717 - cve.2026-115720 - cve.2026-116492// Azure Sentinel / Defender KQL: Detect pgvectorscale DiskANN Operator Class Abuse & Frappe SSRFunion( AzureDiagnostics | where Category == "PostgreSQLLogs" | where Message has_any ("CREATE OPERATOR CLASS", "USING diskann", "vectorscale") | where Message !has "pg_catalog" | project TimeGenerated, Resource, Message, Detection = "CVE-2026-116489_PgVectorScale_DiskANN_OpClass"),( AppServiceHTTPLogs | where TimeGenerated > ago(24h) | where CsUriStem has_any ("improve_prompt", "convert_to_webp", "phone_lookup") | project TimeGenerated, _ResourceId, CsUriStem, CIp, ScStatus, Detection = "CVE-2026-115718_115720_Frappe_Abuse")#!/usr/bin/env bash# Hermes Forensic Audit Script for Timescale pgvectorscale (CVE-2026-116489) & Frappe Builder/CRMset -euo pipefail
echo "[*] 1. Checking installed pgvectorscale extension version in PostgreSQL (< 0.9.1 vulnerable to CVE-2026-116489)..."if command -v psql >/dev/null 2>&1; then psql -Atc "SELECT extname, extversion FROM pg_extension WHERE extname = 'vectorscale';" 2>/dev/null || true psql -Atc "SELECT opcname, opcintype::regtype FROM pg_opclass WHERE opcmethod = (SELECT oid FROM pg_am WHERE amname = 'diskann');" 2>/dev/null || truefi
echo "[*] 2. Auditing Frappe Bench apps for Frappe Builder (< 1.36.1) and Frappe CRM (< 1.89.1)..."grep -rnE "__version__" apps/builder/builder/__init__.py apps/crm/crm/__init__.py 2>/dev/null || trueRemediation & Hardening Directives
Section titled โRemediation & Hardening Directivesโ- Upgrade Timescale
pgvectorscaleto>= 0.9.1(CVE-2026-116489):- Upgrade the
pgvectorscalebinary library and runALTER EXTENSION vectorscale UPDATE TO '0.9.1';across all PostgreSQL instances. - Version
0.9.1enforces schema-qualified bindings topgvector, registers anamvalidatehandler on thediskannaccess method, and validates varlena byte lengths and metapage dimensions before constructing Rust slices. - Revoke
CREATEprivileges on schemas included insearch_pathfrom untrusted or multi-tenant RAG database roles.
- Upgrade the
- Upgrade Frappe Builder to
>= 1.36.1(CVE-2026-115718,CVE-2026-115717,CVE-2026-115720):- Update Frappe Builder to version
1.36.1or later (bench get-app builder --branch version-15 && bench update). - Version
1.36.0enforces role authorization onimprove_prompt(CVE-2026-115718), and version1.36.1restrictsconvert_to_webpto authorizedbuilder_assetspaths while disabling unvalidated HTTP redirects (allow_redirects=Falseor per-hop IP validation) to prevent SSRF (CVE-2026-115717,CVE-2026-115720).
- Update Frappe Builder to version
- Upgrade Frappe CRM to
>= 1.89.1(CVE-2026-116492):- Update Frappe CRM to version
1.89.1or later to enforce strict session and permission checks on the Phone Lookup API.
- Update Frappe CRM to version