Pinecone, Weaviate, and Milvus Security Issues in JavaScript and TypeScript Applications

This series shows how vulnerabilities propagate through the stack and provides a framework for defending AI applications in production.

September 8, 2025
September 8, 2025

0 min read

Application Security
Pinecone, Weaviate, and Milvus Security Issues in JavaScript and TypeScript Applications

Introduction

Vector databases such as Pinecone, Weaviate, and Milvus are critical components of AI applications. Their JavaScript and TypeScript clients allow developers to embed, query, and retrieve high-dimensional vectors. These integrations come with application security risks, particularly when vector stores are treated as trusted rather than adversarial environments.

Data Exfiltration via Query Abuse

In Pinecone and Weaviate, queries can retrieve vectors along with metadata. If applications expose search endpoints without authentication, attackers can exfiltrate embeddings that contain sensitive corporate documents. One red team assessment demonstrated how an attacker used a simple vector similarity query to leak contract data embedded in Pinecone.

Injection in Vector Metadata

Weaviate and Milvus allow developers to attach metadata to vectors. Applications that concatenate user input into metadata fields without sanitization are vulnerable to injection. In one incident, metadata crafted with malicious JSON led to server errors that revealed underlying database configuration.

Over-Privileged API Keys

API keys for vector databases are often given full cluster access. In a 2024 security review, Pinecone deployments were found exposing keys that allowed both read and write operations. An attacker who compromises the key can poison embeddings, insert malicious data, or delete critical indices.

MITRE ATT&CK Mapping

Threat Vector MITRE Technique(s) Example
Unauthorized vector queries T1530 – Data from Cloud Storage Object Pinecone endpoint exposing embeddings without authentication
Metadata injection T1565 – Data Manipulation Weaviate metadata crafted to cause errors and leak config
API key misuse T1552 – Unsecured Credentials Pinecone API key with full cluster privileges abused for poisoning

Conclusion

Vector databases extend the attack surface of AI applications. Without strict authentication, data exfiltration and poisoning are straightforward. Security teams must enforce access controls, sanitize metadata, and scope API keys to the minimum necessary permissions.

References

  • Pinecone. (2024). Securing your Pinecone deployment. Pinecone Docs. https://docs.pinecone.io/docs/security
  • Weaviate. (2024). Security considerations. Weaviate Documentation. https://weaviate.io/developers/weaviate
  • MITRE ATT&CK®. (2024). ATT&CK Techniques. MITRE. https://attack.mitre.org/
Table of contents

Related blogs

Top 5 Malicious Package Detection Tools in 2026

Top 5 Malicious Package Detection Tools in 2026

Malicious package detection is not CVE scanning. Five tools compared on detection latency, ecosystem tiering, and whether they block or only alert.

September 11, 2026

14

Top 5 AI SAST Tools in 2026

Top 5 AI SAST Tools in 2026

AI SAST tools promise less noise and automatic fixes. Five tools compared on the six criteria that matter, and what the independent research shows.

September 11, 2026

15

Reachability Predicts. Runtime Proves.

Reachability Predicts. Runtime Proves.

Reachability tells you code can execute. Runtime tells you it did.

July 20, 2026

7

Stop the waste.
Protect your environment with Kodem.

A Primer on Runtime Intelligence

See how Kodem reads what actually loads and executes in your running applications, and why that changes which findings matter.

See the Kodem platform

Kodem shows which vulnerabilities actually load and execute in your running applications, so your team works the risk that is real.

The State of the Application Security Workflow

This report aims to equip readers with actionable insights that can help future-proof their security programs. Kodem, the publisher of this report, purpose built a platform that bridges these gaps by unifying shift-left strategies with runtime monitoring and protection.

3D book mockup of Kodem's State of the Application Security Workflow 2025 report

Get real-time insights across the full stack…code, containers, OS, and memory

Watch how Kodem’s runtime security platform detects and blocks attacks before they cause damage. No guesswork. Just precise, automated protection.

Kodem issues list with a magnified view of insight icons: runtime, ingress, and exploitability
Combined author
Mahesh Babu
Publish date

0 min read

Application Security