Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Vite Config Security Audit

    by CashonlyTian

    1

    Use when a user wants to know whether a vite.config.* is safe to run or ship.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Vite Config Security Audit

    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

    CheckScoreStatusFinding
    Dev Exposure0/15FAILserver.host is set to true (exposed to network)
    FS Access5/15FAILserver.fs.strict is false
    Version Pinning0/10FAILVite version 5.0.0 is below patched floor (6.4.6+)
    Env Prefix10/10PASSenvPrefix is correctly scoped
    Proxy Targets10/10PASSNo 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@latest to address the version pinning failure.
    • Modify vite.config.ts to remove the --host equivalent setting.
    • Re-run the audit to verify the new score.

    scan-2025-05-20.png

    PDF · document

    Generated

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

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

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

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed3 days ago

    What's inside

    Frequently Asked Questions

    The skill analyzes any Vite project using TypeScript or JavaScript configuration formats (ts, js, mjs, cjs, mts, etc.). It also scans package.json files and .env files to ensure environment variables aren't accidentally exposed to the client bundle.

    No code is executed or imported during the scan; the agent parses your configuration files as text to identify risky patterns. Additionally, the scanner is designed to mask sensitive secret values found in .env files to ensure they are not sent to the LLM.

    Unlike generic prompts, this skill uses a specialized scanning logic that understands Vite-specific security defaults, such as fs.deny behaviors and version-specific vulnerability floors. It provides a structured 0-100 risk score and a visual score-card rather than just a conversational summary.

    The audit focuses on the local development and build configuration, specifically flagging network exposure, file system leaks, and secret injection. It does not monitor live production deployments, Docker container security, or CI/CD pipeline configurations.

    The skill checks your pinned Vite version against the November 2026 security patch floors. If your project is running an outdated version with known vulnerabilities, the audit will flag this as a high-priority fix in your report.

    New in LLM Ops