Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    LibreChat Config Security Audit

    by CashonlyTian

    1

    Scores 10 checks 0–100 with grade + score-card PNG.

    $7.20

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    LibreChat Config Security Audit

    LibreChat Config Security Audit

    Example session with this skill installed

    Audit my LibreChat install in the reference/demo-project directory. Project name is "Acme LibreChat Demo", language en, accent #DB2777.

    • Read your context and instructions
    • Compiled the librechat config security
    • Generated the document

    Security Audit: Acme LibreChat Demo

    Score: 0/100 | Grade: F | Risk Level: CRITICAL | Findings: 67

    CheckScoreFindings
    patched_version0/1023
    auth_and_registration0/105
    literal_secrets0/105
    mcp_server_safety0/104
    file_uploads_and_sharing0/105
    network_exposure0/105
    storage_and_database0/104
    container_hardening0/109
    endpoints_and_api_keys0/104
    file_hygiene_and_backups0/103

    Per-check scores: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 — all 10 checks fire. The install is version 0.8.3, exposed to 23 version flaws including pre-registration account takeover (CVE-2026-54039, 8.1), MCP OAuth theft (CVE-2026-54030, 8.0) and LDAP login DoS (CVE-2026-137586, 8.7). Open registration, a weak JWT_SECRET, the published default MeiliSearch master key, shell-running MCP servers, a public conversation share, port 3080 on 0.0.0.0 with no TLS reverse proxy, and a :latest image running as root with the Docker socket mounted.

    Top 3 Required Fixes

    Upgrade to v0.8.9 immediately. Version 0.8.3 is exposed to 23 verified flaws; 0.8.9 is the latest fix release verified (26 November 2026) and the recommended pin.
    2.

    Rotate every literal secret. Replace the default MeiliSearch master key and all literal API keys with ${VAR} references and generate a 32-character random JWT_SECRET.
    3.

    Close registration and lock down the network. Set ALLOW_REGISTRATION=false, stop publishing port 3080 and the database ports on 0.0.0.0, and put TLS in front.

    The full report is available at scan-report.md and the score-card has been generated at score-card.png.

    Clean demo

    The clean demo (reference/demo-project-clean, version 0.8.9): 100/100, grade A, risk LOW, 0 findings.

    score-card.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

    LibreChat Config Security Audit

    Audit a self-hosted LibreChat install BEFORE it goes live — pre-registration takeover (CVE-2026-54039, 8.1), MCP OAuth theft (CVE-2026-54030, 8.0), LDAP DoS (CVE-2026-137586, 8.7), leaked keys, open registration, exposed 3080, Docker hardening. Scores 10 checks 0–100 with grade + score-card PNG.

    Audit a self-hosted LibreChat install directory (a version.txt, a .env, a docker-compose.yml, a docker-compose.override.yaml, a librechat.yaml, a package.json, a mcp-servers.txt, a sharing.txt, a backups.txt, a reverse-proxy.txt, a setup.txt, a firewall.txt, a telemetry.txt and a data/ + uploads/ data directory) BEFORE it goes live — the version against the verified November 2026 flaw table (the 0.8.4-rc1 batch — CVE-2026-54029 message deletion IDOR, CVSS 5.3; CVE-2026-54027 image-upload agent permission bypass, CVSS 6.5; CVE-2026-54036 2FA takeover, CVSS 5.3; CVE-2026-54037 duplicate-endpoint rate limiting missing, CVSS 6.5; CVE-2026-54040 2FA backup-code regeneration, CVSS 5.9; CVE-2026-54025 markdown artifact XSS, CVSS 5.4; CVE-2026-54030 MCP OAuth resource mismatch, CVSS 8.0, fixed 0.8.5; CVE-2026-54039 pre-registration account takeover, CVSS 8.1, fixed 0.8.6; CVE-2026-54023 federated tokens leaked via /api/user, CVSS 6.0, fixed 0.8.6; CVE-2026-54026 cross-user message injection, CVSS 6.5, fixed 0.8.6; CVE-2026-54032 MCP description XSS, CVSS 6.1, fixed 0.8.6; CVE-2026-54041 plaintext password logged, CVSS 3.1, fixed 0.8.6; CVE-2026-54043 unauthorized file content access via file_id, CVSS 6.3, fixed 0.8.7; CVE-2026-54046 user enumeration, CVSS 5.3, fixed 0.8.7; CVE-2026-54045 password reset wipes verification tokens, CVSS 6.5, fixed 0.8.7; CVE-2026-54042 2FA guessing, CVSS 6.8, fixed 0.8.7; CVE-2026-54044 shared-agent API key exfiltration, CVSS 7.7, fixed 0.8.7; CVE-2026-54031 MCP OAuth redirect SSRF, CVSS 6.3, fixed 0.8.8; CVE-2026-137588 conversation-import DoS, CVSS 7.1, fixed 0.8.8; GHSA-pw8q-9f5p-fjpx path traversal via tool_resources.files, CVSS 7.1, fixed 0.8.8; CVE-2026-137586 LDAP login DoS, CVSS 8.7, fixed 0.8.9; CVE-2026-137656 balance auto-refill race, CVSS 2.3, fixed 0.8.9; CVE-2026-54038 principal-search ReDoS, CVSS 6.5, fixed 0.8.9; GHSA-fx3p-86pp-26jp agent-avatar auth bypass, CVSS 5.3, fixed 0.8.9 — all fixed in 0.8.9), open registration with social login (the CVE-2026-54039 precondition), a missing / weak JWT_SECRET or JWT_REFRESH_SECRET, literal secrets in .env / compose / librechat.yaml (including the widely published default MeiliSearch master key "DrhYf7zENyR6Z8Wn4toQ"), MCP stdio servers running shell commands or leaking secrets through env vars, a public conversation share or a shared agent with EDIT permission, port 3080 published on 0.0.0.0 with plain HTTP and no TLS reverse proxy, MongoDB / Redis / MeiliSearch ports published on 0.0.0.0, MongoDB without auth, Redis without a password, MeiliSearch with no master key, a :latest image, a container running as root / privileged / with the Docker socket mounted, or a world-readable .env with no backup. Scores 10 checks 0-100 with grade, risk level and a shareable 1024x1024 score-card PNG (English + Chinese). The scan is local only: config files are parsed as text, librechat.yaml is read as text and never imported, and secret values are never printed in full anywhere — findings name the key and the kind only.

    The 10 checks (10 points each)

    1. patched_version — the installed version is fully patched: version.txt (or a version line in .env, or the version in package.json, or the compose image tag as a fallback) is 0.8.9 or later. Fully patched scores 10, 0.8.8 scores 8, 0.8.7 scores 5, 0.8.6 scores 3, 0.8.4-rc1–0.8.5 scores 1, older / unpatched scores 0, a missing version scores 5 (cannot verify — partial). A pre-release suffix caps the score at 7. Note: 0.8.9 is the latest fix release verified (26 November 2026) and the recommended pin. One finding per CVE the version is exposed to.
    2. auth_and_registration — registration is closed and sessions are locked down: ALLOW_REGISTRATION is false (missing is medium — LibreChat's default is open registration; true is high), ALLOW_SOCIAL_LOGIN and ALLOW_SOCIAL_REGISTRATION are not both true (medium); JWT_SECRET is set (missing is high), not a weak value (high) and not short (under 16 characters — medium); JWT_REFRESH_SECRET is set (missing is medium), not the same value as JWT_SECRET (high), not a weak value (medium) and not short (medium); email verification is recorded as enforced in setup.txt (not recorded is medium). A ${VAR} reference passes for any of these values. Score 10 minus weighted findings, floor 0.
    3. literal_secrets — no literal secrets in .env / docker-compose.yml / librechat.yaml: CREDS_KEY and CREDS_IV, MEILI_MASTER_KEY (including the widely published default "DrhYf7zENyR6Z8Wn4toQ" — high), model provider API keys (OpenAI, Anthropic, ...) and any other secret key. A placeholder / weak value (changeme, password, secret, under 8 characters for a key) is medium; any other literal value is high. A base64-looking value is still a literal secret. ${VAR} references are NOT flagged; secret values are never printed in full anywhere. JWT_SECRET and JWT_REFRESH_SECRET are check 2's job, so they are not counted here; endpoint apiKey lines in librechat.yaml are check 9's job; env: secrets inside an mcpServers block are check 4's job. A *_PATH variable holds a filesystem path, not a secret, so it is not flagged; a boolean feature flag is not a secret either. Score 10 minus weighted findings, floor 0.
    4. mcp_server_safety — the MCP servers are locked down: no stdio server in librechat.yaml runs a shell (sh / bash / zsh / cmd / powershell — high) or passes shell metacharacters in its args (high); no stdio server injects a literal secret through its env: block (high); no remote MCP server is reached over plain http:// (medium); an mcp-servers.txt note records which servers are allowed and reviewed whenever any mcpServers exist (missing is medium). Score 10 minus weighted findings, floor 0.
    5. file_uploads_and_sharing — uploads and sharing are gated: no conversation in sharing.txt is marked public (high each); a public share with no sharing.txt note recording that the sharing was reviewed is medium; no agent in sharing.txt is shared with EDIT permission (medium each — CVE-2026-54044, CVSS 7.7); secureImageLinks is on in librechat.yaml (off is medium — GHSA-fx3p-86pp-26jp); the uploads/ directory is not world-readable (medium). Score 10 minus weighted findings, floor 0.
    6. network_exposure — no service in docker-compose publishes the front port (PORT, else 3080 — LibreChat reads PORT), 80 or 443 on 0.0.0.0 (a bare 3080:3080 entry binds all interfaces too) — each such publication is high; MongoDB (27017), Redis (6379) and MeiliSearch (7700) are not published on 0.0.0.0 — high each; no TLS reverse proxy documented (no reverse-proxy.txt note) is medium. The proxy service in compose is the front door, not evidence of TLS. Docker-published ports skip ufw. Score 10 minus weighted findings, floor 0.
    7. storage_and_database — MONGO_URI carries credentials (no credentials, and not a ${VAR} reference, is high); REDIS_PASSWORD is set when Redis is in use (missing is medium); MEILI_MASTER_KEY is set (missing is high — the published default value is check 3's job); no file under data/ is readable by group / other users (high — .gitkeep markers are skipped); and a backup exists (no backups.txt note, no backups/ directory, no *.bak marker is medium when a data/ directory exists — the backup finding is also check 10's job). Score 10 minus weighted findings, floor 0.
    8. container_hardening — no image tagged :latest / :main / untagged is medium; no container running as root (no user:) is medium; privileged: true is critical and a dangerous cap_add (SYS_ADMIN / NET_ADMIN / ALL) is high; a Docker socket mount is high; a host / or /etc mount is high; no healthcheck, no restart policy and no resource limits are low each. Findings are aggregated per kind across services (one finding per kind, naming the services). Score 10 minus weighted findings, floor 0.
    9. endpoints_and_api_keys — no endpoint apiKey in librechat.yaml is a literal value (high each — use a ${VAR} reference; an endpoint with no apiKey at all passes); no custom endpoint baseURL is plain http:// (medium each); and rateLimits are configured in librechat.yaml (missing is medium). Score 10 minus weighted findings, floor 0.
    10. file_hygiene_and_backups — .env / a TLS key with any group / other permission bit (mode & 0o077, i.e. anything looser than 0600) is high each; a data/ or uploads/ directory that is world-writable is medium; no backup present (no backups.txt note, no backups/ directory, no *.bak marker) is medium when a data/ or uploads/ directory exists; a missing version.txt is low — and only fires when check 1 also scored partial, so the same gap is not double-penalised. Score 10 minus weighted findings, floor 0.

    How to run

    # 1. Copy the whole install directory as-is (keep the file names
    #    and the file modes exactly as deployed): version.txt,
    #    .env, docker-compose.yml, docker-compose.override.yaml,
    #    librechat.yaml, package.json, mcp-servers.txt, sharing.txt,
    #    backups.txt, reverse-proxy.txt, setup.txt, firewall.txt,
    #    telemetry.txt, data/, uploads/. Record email verification
    #    in setup.txt, public conversations and shared agents in
    #    sharing.txt, allowed MCP servers in mcp-servers.txt, the
    #    TLS reverse proxy in reverse-proxy.txt, and backups in
    #    backups.txt.
    # 2. Write the meta JSON (see reference/example_input.json):
    #    {"date": "2026-11-30", "project": "Acme LibreChat Demo",
    #     "language": "en", "accent": "#DB2777",
    #     "brand": "LibreChat Config Security Audit",
    #     "path": "reference/demo-project"}
    # 3. Run the scan:
    python3 scripts/run.py --input <meta.json> --path <dir> --output <outdir>
    # 4. Verify the demo card and both demo projects:
    python3 scripts/verify.py
    

    Demo results (all run, not invented)

    • Unsafe demo (reference/demo-project, "Acme LibreChat Demo", version 0.8.3): 0/100, grade F, risk CRITICAL, 67 findings — 23 patched version, 5 auth and registration, 5 literal secrets, 4 MCP server safety, 5 file uploads and sharing, 5 network exposure, 4 storage and database, 9 container hardening, 4 endpoints and API keys, 3 file hygiene and backups. Per-check scores: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 — all 10 checks fire.
    • Clean demo (reference/demo-project-clean, version 0.8.9): 100/100, grade A, risk LOW, 0 findings.
    • Empty-directory sanity: 100/100, all checks n/a.
    • scripts/verify.py PASS (all checks, incl. the version ladder: 0.6.0 / 0.7.0 / 0.8.3 score 0, 0.8.4 / 0.8.4-rc1 / 0.8.5 score 1, 0.8.6 scores 3, 0.8.7 scores 5, 0.8.8 scores 8, 0.8.9 / 0.9.0 score 10, 0.8.9-rc1 caps at 7, missing version scores 5; exposed-flaw counts 0.6.0 → 19, 0.7.0 → 20, 0.8.3 → 23, 0.8.4 → 17, 0.8.5 → 17, 0.8.6 → 12, 0.8.7 → 7, 0.8.8 → 4, 0.8.9 / 0.9.0 → 0; no demo secret value in any finding or report; .env byte-identical after a scan; no scanner script executes code; no curl|sh pipe in any fixture).
    • Build corrections (see reference/notes.md): the brief's recommended pin of 0.8.7 is corrected to 0.8.9 — OpenCVE lists fix releases 0.8.8 (CVE-2026-54031, CVE-2026-137588) and 0.8.9 (CVE-2026-137586, CVE-2026-137656, CVE-2026-54038), so 0.8.7 still has 7 exposed flaws; the clean demo is version 0.8.9, not 0.8.7. Three more CVEs the brief did not list were verified and added (CVE-2026-54026, CVE-2026-54032, CVE-2026-54041, all fixed 0.8.6; CVE-2026-54042, CVE-2026-54044, both fixed 0.8.7; CVE-2026-54031, CVE-2026-137588, fixed 0.8.8; CVE-2026-137586, CVE-2026-137656, CVE-2026-54038, fixed 0.8.9) plus two GHSA-only rows (GHSA-pw8q-9f5p-fjpx, GHSA-fx3p-86pp-26jp). CVE-2026-54023 carries the OpenCVE CVSS 4.0 score of 6.0. One scanner fix during build: the check-3 librechat.yaml scan skipped indent-0 lines, so a top-level secret line was missed (the verify.py edge case caught it); empty .gitkeep markers are skipped by the data/ file-mode check. LibreChat's own brand is black / white; the #DB2777 pink is the task-chosen accent for this skill's cards and logo, distinct from Flowise green #059669, AnythingLLM orange #C2410C, Langflow blue #2563EB and Dify blue #155EEF.

    Files

    • SKILL.md — the skill (inputs, the 10 checks, steps, safety rules).
    • scripts/scan.py — the scanner (pure Python, no network).
    • scripts/render.py — the 1024x1024 score-card renderer (Pillow).
    • scripts/run.py — the CLI (--input, --path, --output).
    • scripts/verify.py — the verifier (card layout, demo scores, secret masking, empty-directory sanity, read-only scan check, no-code-execution AST check, edge cases).
    • scripts/make_logo.py — makes logo.png (512x512).
    • scripts/make_demo.py — builds the two demo install directories (build-time only, excluded from the zip).
    • reference/patterns.md — what each check looks for.
    • reference/notes.md — verified facts, corrections, known limits.
    • reference/demo-project/ — deliberately unsafe install directory (all values fake, all hosts .test).
    • reference/demo-project-clean/ — clean install directory (scores 100/100, no false positives).

    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.

    Scans local install files only; no network probing or live API testing. Does not support other LLM interfaces like Dify or Open WebUI. Requires specific note files for UI-only settings.

    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 1 day ago

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Write Files
    Read Files
    Environment Variables
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    This skill scans your `.env`, `docker-compose.yml`, and `librechat.yaml` files to identify version-specific CVEs (including the 2026 flaw table), exposed database ports, weak JWT secrets, and insecure Docker configurations that could lead to account takeovers.

    No, this is a static configuration auditor. It parses your local setup files as text to find structural risks and leaked credentials without sending active network requests or performing intrusive penetration testing on your live server.

    This skill is designed for self-hosted LibreChat deployments using the standard Docker Compose stack, including integrated services like MongoDB, Redis, and MeiliSearch.

    The skill provides a prioritized fix list, a comprehensive Markdown security report, and a shareable PNG score-card (0-100) that you can use to verify compliance before a client hand-off or production launch.

    Because security research evolves, this skill is specifically mapped to the November 2026 vulnerability database; the auditor logic is updated periodically to include the latest known CVEs and IDOR/XSS flaws specific to the LibreChat repository.

    Your configuration files are parsed locally by the agent's environment to identify strings and patterns. Sensitive data like API keys are flagged for your review but are not stored or transmitted outside of your secure session.

    New in LLM Ops