Scan your whole stack
From OX Research Newsroom
Are you using @sanity/vision?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v6.26.0-next.96
@sanity/vision was last scanned on 30 Nov 2026 at version 6.26.0-next.96. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 6.26.0-next.96 LATEST | 30 Nov 2026 | No rules fired |
| 6.26.0-next.85 | 30 Nov 2026 | No rules fired |
| 7.0.0-next-major.20261130140537 | 30 Nov 2026 | No rules fired |
| 6.26.0-next.66 | 28 Nov 2026 | Not shown |
| 7.0.0-next-major.20261128070445 | 28 Nov 2026 | Not shown |
Findings for v6.26.0-next.96. 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 6.26.0-next.96; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Vision is a plugin for Sanity Studio for testing GROQ queries. It features:
npm install --save-exact @sanity/vision
import {visionTool} from '@sanity/vision'
// `sanity.config.ts` / `sanity.config.js`:
import {defineConfig} from 'sanity'
export default defineConfig({
// ...
plugins: [
visionTool({
// Note: These are both optional
defaultApiVersion: 'v2021-10-21',
defaultDataset: 'some-dataset',
}),
],
})
If you only want the Vision tool available in development (e.g., not in deployed studios), you can import and use the isDev constant from the sanity package:
import {visionTool} from '@sanity/vision'
// `sanity.config.ts` / `sanity.config.js`:
import {defineConfig, isDev} from 'sanity'
const devOnlyPlugins = [visionTool()]
export default defineConfig({
// ...
plugins: [
// ... your other plugins here ...
...(isDev ? devOnlyPlugins : []),
],
})
If you only want the Vision tool available to administrators, you can use the Tool API to filter out the tool based on role:
import {visionTool} from '@sanity/vision'
// `sanity.config.ts` / `sanity.config.js`:
import {defineConfig} from 'sanity'
export default defineConfig({
// ... name, title, projectId, dataset, etc.
plugins: [
// ... your other plugins here ...
visionTool(),
],
tools: (prev, {currentUser}) => {
const isAdmin = currentUser?.roles.some((role) => role.name === 'administrator')
// If the user has the administrator role, return all tools.
// If the user does not have the administrator role, filter out the vision tool.
return isAdmin ? prev : prev.filter((tool) => tool.name !== 'vision')
},
})
MIT-licensed. See LICENSE.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.