{"id":51118732,"url":"https://github.com/Perufitlife/directus-security","last_synced_at":"2026-06-25T00:01:25.962Z","repository":{"id":366362786,"uuid":"1275983705","full_name":"Perufitlife/directus-security","owner":"Perufitlife","description":"Keyless active-probe security auditor for Directus: proves public-role data exposure, user enumeration, unauth version/schema leaks (CVE-2025-53887), GraphQL introspection \u0026 search-param field enumeration (CVE-2025-30352) with live anonymous probes. Zero deps.","archived":false,"fork":false,"pushed_at":"2026-06-21T12:49:49.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-21T14:40:08.211Z","etag":null,"topics":["cms","cve","data-exposure","devsecops","directus","graphql","headless-cms","security","security-audit","vulnerability-scanner"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Perufitlife.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-21T11:50:27.000Z","updated_at":"2026-06-21T12:49:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Perufitlife/directus-security","commit_stats":null,"previous_names":["perufitlife/directus-security"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Perufitlife/directus-security","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fdirectus-security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fdirectus-security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fdirectus-security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fdirectus-security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Perufitlife","download_url":"https://codeload.github.com/Perufitlife/directus-security/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fdirectus-security/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34753781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cms","cve","data-exposure","devsecops","directus","graphql","headless-cms","security","security-audit","vulnerability-scanner"],"created_at":"2026-06-25T00:01:24.993Z","updated_at":"2026-06-25T00:01:25.946Z","avatar_url":"https://github.com/Perufitlife.png","language":"JavaScript","funding_links":[],"categories":["Headless CMS"],"sub_categories":[],"readme":"# directus-security\n\n\u003e Audit any **Directus** instance for the misconfigurations that actually leak data — public-role read exposure, user enumeration, unauthenticated version/schema leaks, GraphQL introspection, and the `search`-param field-enumeration oracle — and **prove each one live with an anonymous probe**. Other checklists tell you what *might* be wrong; this fetches the bytes and shows you what *is*.\n\n\u003e ⚡ **Run it in one line, no admin token, no install:**\n\u003e ```bash\n\u003e npx directus-security --url https://your-directus.example.com\n\u003e ```\n\n\u003e 🤝 **Want it done for you?** [Fixed-scope audit — $99 / 24h](https://buy.stripe.com/3cIeVdgikfj47yx9LkcAo0m): I verify each finding live and send a written report with the exact policy fixes.\n\n[![npm](https://img.shields.io/npm/v/directus-security?color=red)](https://www.npmjs.com/package/directus-security) [![downloads](https://img.shields.io/npm/dw/directus-security)](https://www.npmjs.com/package/directus-security) ![license](https://img.shields.io/badge/license-MIT-green) ![node](https://img.shields.io/badge/node-%3E%3D18-blue) ![deps](https://img.shields.io/badge/dependencies-0-brightgreen)\n\n```\n$ npx directus-security --url https://directus.example.com\n1 critical, 2 high, 1 medium — 4 CONFIRMED via anonymous probe\n  CRITICAL  /items/posts            public-role read enabled — rows reachable anonymously\n  HIGH      /items/posts?search=…   search-param field enumeration (CVE-2025-30352 class)\n  HIGH      /items/directus_users   user list exposed (name + email)\n  MEDIUM    /server/specs/oas       Directus version leaked unauthenticated (CVE-2025-53887 class)\n```\n\n## Why this exists\n\nDirectus powers headless backends at Tripadvisor, Adobe and Mercedes, and the\ndefault access model makes one mistake very easy: leaving **read** enabled for\nthe **Public** policy. The result is an API anyone can read. 2025 brought a\ncluster of unauthenticated CVEs that map *exactly* to anonymous probes:\n\n- [CVE-2025-30352](https://github.com/directus/directus/security/advisories/GHSA-m5q3-8wgf-x8xf) — the `search` query parameter enumerates non-permitted fields, leaking emails and **password hashes** one character at a time.\n- [CVE-2025-53887](https://nvd.nist.gov/vuln/detail/CVE-2025-30352) — the Directus version is exposed unauthenticated via `/server/specs/oas`, letting attackers match your build to known exploits.\n- CVE-2025-64749 — collection-existence leak via error-message diffing.\n- CVE-2025-53889 — unauthenticated Flow trigger.\n\n`directus-security` checks for these and **confirms the real ones** by issuing the\nexact anonymous request an attacker would — so you triage facts, not maybes.\n\n## What it checks\n\n| Check | Severity | How it's confirmed |\n|---|---|---|\n| Public-role read on a collection | critical | anonymous `GET /items/{collection}` returns rows |\n| `search`-param field enumeration | high | anonymous `GET /items/{collection}?search=…` answers (CVE-2025-30352 class) |\n| `/items/directus_users` user enumeration | high | anonymous read returns the user list (name + email) |\n| Unauthenticated version/schema leak | medium | `/server/info` or `/server/specs/oas` returns the version unauth (CVE-2025-53887 class) |\n| GraphQL introspection in prod | medium | `__schema` query answered on `/graphql` or `/graphql/system` |\n\n## Usage\n\n```bash\n# Probe a live instance (guesses common collection names)\nnpx directus-security --url https://directus.example.com\n\n# Probe specific collections\nnpx directus-security --url https://directus.example.com --collections posts,authors\n\n# Learn your exact collection names from a Directus schema snapshot, then probe\nnpx directus-security --url https://directus.example.com --snapshot ./snapshot.json\n\n# Write a shareable HTML report\nnpx directus-security --url https://directus.example.com --html report.html\n\n# Static only (no requests sent)\nnpx directus-security --url https://directus.example.com --no-probe\n```\n\nOutput is JSON on stdout (pipe it into CI) and a one-line summary on stderr.\nExit is non-zero only on usage errors — gate your pipeline on the JSON `summary`.\n\n## Install (optional)\n\n```bash\nnpm i -g directus-security\ndirectus-security --url https://directus.example.com\n```\n\nZero dependencies. Your data and credentials never leave your machine — every\nrequest goes straight from the tool to your Directus instance.\n\n## Sister tools\n\nSame active-probe philosophy for the rest of the backend stack, all MIT:\n\n[strapi-security](https://github.com/Perufitlife/strapi-security) ·\n[supabase-security](https://github.com/Perufitlife/supabase-security-skill) ·\n[pocketbase-security](https://github.com/Perufitlife/pocketbase-security-skill) ·\n[firebase-security](https://github.com/Perufitlife/firebase-security-skill) ·\n[appwrite-security](https://github.com/Perufitlife/appwrite-security-skill) ·\n[nhost-security](https://github.com/Perufitlife/nhost-security-skill)\n\n## License\n\nMIT © [Renzo Madueno](https://github.com/Perufitlife)\n\n---\n\n📚 Part of [**Awesome Backend Security Auditors**](https://github.com/Perufitlife/awesome-backend-security) — the full collection of keyless active-probe auditors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerufitlife%2Fdirectus-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPerufitlife%2Fdirectus-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerufitlife%2Fdirectus-security/lists"}