Skip to content

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)

Density:
C-Level Executive Briefing CVE-2026-116489 CRITICAL SCORE 95/100

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).

HYBRID

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
Confidence: 99%
95 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 19 / 20
Threat Activity 19 / 20
Weaponization 20 / 20
Exposure 19 / 20
Prevalence 19 / 20
Impact 19 / 20
Exploit Maturity 19 / 20
Attack Chain Potential 20 / 20
โš–๏ธ Divergence & Operational Rationale

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.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

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

Connected Nodes: 3
Active Relationships (Outgoing)
→ affectsPRODUCTCPython Interpreter & Standard Library
98% VERY_HIGH

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.”

Supporting Verified Evidence:
→ exploitsAGENTIC ATTACK_PATTERNAAP-001: Direct System Prompt Override
92% 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.”

Supporting Verified Evidence:
→ exploitsAGENTIC ATTACK_PATTERNAAP-004: Semantic Tool Poisoning
92% VERY_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.”

Supporting Verified Evidence:

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):

  1. CVE-2026-116489 (CWE-843 / CWE-426, CVSS 8.8 High / VulnCheck 9.5 Weaponized โ€” Timescale pgvectorscale < 0.9.1 Type Confusion via Unqualified DiskANN Operator Classes): Timescale pgvectorscale (timescale/pgvectorscale), the Rust-based (pgrx) PostgreSQL extension that adds StreamingDiskANN and Statistical Binary Quantization (SBQ) vector indexing on top of pgvector, defined its diskann index operator classes and SQL support functions using unqualified references to vector / halfvec types and operators, while its native Rust index access method (amhandler) trusted unvalidated typmod and 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 earlier search_path schemaโ€”or pass mismatched vector datumsโ€”to trigger type confusion (CWE-843), reading or corrupting out-of-bounds PostgreSQL backend memory.
  2. CVE-2026-115718 (CWE-862, CVSS 8.1 / VulnCheck 9.5 Weaponized โ€” Frappe Builder >= 1.33.0, < 1.36.0 Missing Authorization via improve_prompt): In Frappe Builder (frappe/builder), the RPC endpoint improve_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).
  3. CVE-2026-115717 & CVE-2026-115720 (CWE-918, CVSS 8.6 / VulnCheck 9.5 Weaponized โ€” Frappe Builder < 1.36.1 SSRF via convert_to_webp & SSRF Guard Bypass via HTTP Redirect): In Frappe Builder prior to 1.36.1, the convert_to_webp asset 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 followed 301/302/307 redirects without re-validating the redirect target against internal/private IP ranges (CVE-2026-115720), enabling full SSRF against 169.254.169.254 (cloud IMDS) and loopback services.
  4. CVE-2026-116492 (CWE-862, CVSS 7.5 / VulnCheck 9.5 Weaponized โ€” Frappe CRM < 1.89.1 Missing Authorization via Phone Lookup API): In Frappe CRM (frappe/crm) prior to 1.89.1, the Phone Lookup API endpoint lacked authorization enforcement, exposing customer contact and telephony metadata to unauthorized callers.

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:

  1. Unqualified SQL Type & Operator Bindings (CWE-426 / CWE-843): Extension SQL scripts referenced vector without qualifying the schema where pgvector is installed (@extschema:vector@), and the access method lacked an amvalidate verification routine ensuring that only genuine pgvector types (vector, halfvec) could be bound to diskann operator classes.
  2. 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โ€™s typmod or index metapage and directly constructed a &[f32] slice from the PostgreSQL Datum pointer without verifying that the underlying varlena header size matched dim * 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 amvalidate to reject any custom or forged operator class bindings on diskann indices, 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 frappe
import requests
from PIL import Image
from 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:#ffffff

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-pgvectorfrappe27
status: experimental
description: 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-api
author: Hermes Threat Intelligence
date: 2026/10/27
logsource:
category: webserver
detection:
selection_frappe_endpoints:
cs-uri-stem|contains:
- '/api/method/builder.'
- 'improve_prompt'
- 'convert_to_webp'
- 'phone_lookup'
condition: selection_frappe_endpoints
falsepositives:
- Authenticated site designers actively using Frappe Builder in the administrative workspace
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026-116489
- cve.2026-115718
- cve.2026-115717
- cve.2026-115720
- cve.2026-116492

  1. Upgrade Timescale pgvectorscale to >= 0.9.1 (CVE-2026-116489):
    • Upgrade the pgvectorscale binary library and run ALTER EXTENSION vectorscale UPDATE TO '0.9.1'; across all PostgreSQL instances.
    • Version 0.9.1 enforces schema-qualified bindings to pgvector, registers an amvalidate handler on the diskann access method, and validates varlena byte lengths and metapage dimensions before constructing Rust slices.
    • Revoke CREATE privileges on schemas included in search_path from untrusted or multi-tenant RAG database roles.
  2. Upgrade Frappe Builder to >= 1.36.1 (CVE-2026-115718, CVE-2026-115717, CVE-2026-115720):
    • Update Frappe Builder to version 1.36.1 or later (bench get-app builder --branch version-15 && bench update).
    • Version 1.36.0 enforces role authorization on improve_prompt (CVE-2026-115718), and version 1.36.1 restricts convert_to_webp to authorized builder_assets paths while disabling unvalidated HTTP redirects (allow_redirects=False or per-hop IP validation) to prevent SSRF (CVE-2026-115717, CVE-2026-115720).
  3. Upgrade Frappe CRM to >= 1.89.1 (CVE-2026-116492):
    • Update Frappe CRM to version 1.89.1 or later to enforce strict session and permission checks on the Phone Lookup API.