Works with the AI Agents you already use
Vite Config Security Audit
by CashonlyTian
Use when a user wants to know whether a vite.config.* is safe to run or ship.
$7
Vite Config Security Audit
Example session with this skill installed
Audit my project in ./frontend-app and generate a report. Use my brand 'SecureOps' for the footer.
- Read your context and instructions
- Compiled the vite config security
- Generated the document
I have completed the security audit for the Vite configuration in ./frontend-app. The scan analyzed your vite.config.ts, package.json, and .env files.
Audit Summary:
- Score: 65/100
- Grade: D
- Risk Level: High
- Findings: 4 issues (2 Critical, 1 Medium, 1 Low)
Vite Security Report
| Check | Score | Status | Finding |
|---|---|---|---|
| Dev Exposure | 0/15 | FAIL | server.host is set to true (exposed to network) |
| FS Access | 5/15 | FAIL | server.fs.strict is false |
| Version Pinning | 0/10 | FAIL | Vite version 5.0.0 is below patched floor (6.4.6+) |
| Env Prefix | 10/10 | PASS | envPrefix is correctly scoped |
| Proxy Targets | 10/10 | PASS | No insecure proxy targets found |
Prioritized Fixes
Restrict Network Access: Change server.host in vite.config.ts from true or 0.0.0.0 to localhost to prevent external access to your dev server.
2. Update Vite: Update package.json to Vite ^6.4.6, ^7.3.8, or ^8.3.7 to address known vulnerabilities.
3.
Enable FS Strict: Set server.fs.strict: true to prevent the dev server from serving files outside of your project root.
The visual score-card has been generated at scan-2025-05-20.png and the full technical breakdown is available in scan-report.md.
Next steps
- Run
npm install vite@latestto address the version pinning failure. - Modify
vite.config.tsto remove the--hostequivalent setting. - Re-run the audit to verify the new score.
scan-2025-05-20.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Audit a project's Vite config (vite.config.ts / .js / .mjs / .cjs / .mts, parsed as text — never imported or executed) plus .env / .env.local and package.json before the dev server is exposed — server.host '0.0.0.0' / true / a public IP or a vite --host script, server.fs.strict false / fs.allow outside the project / fs.deny missing, server.cors true or origin '' and missing security headers, server.proxy targets over http:// or to the cloud-metadata endpoint, base over http://, preview.host exposed, envPrefix '' and VITE_ secrets baked into the client bundle (always masked to **), secrets inlined with define:, build.sourcemap true / 'inline' and build.minify false, and a vite version below the November 2026 patched floors (6.4.6 / 7.3.8 / 8.3.7). Scores 10 checks 0-100 with a grade and risk level, and produces a shareable score-card image plus a prioritised fix report. Use when a user wants to know whether a vite.config. is safe to run or ship.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Audits local config files only, not live hosts. Skips files >2MB. Does not perform full CVE dependency scanning beyond the Vite package version.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
- Software
Python 3Pillow