Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@mastra/rag

Latest version: v2.8.3-alpha.2

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: abhiaiyer, calcsam, dschau, nikaiyer, rase-, smthomas, tylerbarnes, wardpeet
29,871 Stars
3,153 Forks
155 Versions
1.2M Downloads
TypeScript Repo language

Scan summary

@mastra/rag was last scanned on 29 Nov 2026 at version 2.8.3-alpha.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 155 versions; the latest 5 were published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 2.8.3-alpha.2.
  • Downloads: 1,158,706 downloads.

Versions

155 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.8.3-alpha.2 LATEST 29 Nov 2026 No rules fired
2.8.3-alpha.1 28 Nov 2026 No rules fired
2.8.3-alpha.0 27 Nov 2026 No rules fired
0.0.0-platform-browser-20261127145951 27 Nov 2026 Not shown
0.0.0-agent-tags-alpha-20261125185303 25 Nov 2026 Not shown

No rules fired in 2.8.3-alpha.2

Findings

Findings for v2.8.3-alpha.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.8.3-alpha.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@mastra/rag

@mastra/rag provides document chunking, reranking, and graph-based retrieval utilities for retrieval-augmented generation. Use it to prepare source material for embedding and select the most relevant context before an agent generates a response.

Installation

npm install @mastra/rag

Usage

Create a document and split it into chunks before embedding or indexing the content.

import { MDocument } from '@mastra/rag';

const document = MDocument.fromText(`
# Product guide

Mastra provides agents, workflows, memory, and retrieval tools.
`);

const chunks = await document.chunk({
  strategy: 'recursive',
  maxSize: 512,
  overlap: 50,
});

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @mastra/rag

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229