{"id":51118731,"url":"https://github.com/Perufitlife/strapi-security","last_synced_at":"2026-06-25T00:01:26.130Z","repository":{"id":366355427,"uuid":"1275970334","full_name":"Perufitlife/strapi-security","owner":"Perufitlife","description":"Audit any Strapi CMS for public-role data exposure, CORS reflection, user enumeration \u0026 GraphQL introspection — and PROVE each leak live with an anonymous probe. Keyless, zero deps, MIT.","archived":false,"fork":false,"pushed_at":"2026-06-21T12:49:46.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-21T14:27:58.422Z","etag":null,"topics":["auditor","cms","cors","data-exposure","devsecops","headless-cms","nodejs","security","security-audit","strapi"],"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:29:45.000Z","updated_at":"2026-06-21T12:49:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Perufitlife/strapi-security","commit_stats":null,"previous_names":["perufitlife/strapi-security"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Perufitlife/strapi-security","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fstrapi-security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fstrapi-security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fstrapi-security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fstrapi-security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Perufitlife","download_url":"https://codeload.github.com/Perufitlife/strapi-security/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fstrapi-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":["auditor","cms","cors","data-exposure","devsecops","headless-cms","nodejs","security","security-audit","strapi"],"created_at":"2026-06-25T00:01:24.993Z","updated_at":"2026-06-25T00:01:26.121Z","avatar_url":"https://github.com/Perufitlife.png","language":"JavaScript","funding_links":[],"categories":["Headless CMS"],"sub_categories":[],"readme":"# strapi-security\n\n\u003e Audit any **Strapi** CMS for the misconfigurations that actually leak data — public-role read exposure, CORS reflection, user enumeration, GraphQL introspection, and the relational-populate admin 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 strapi-security --url https://your-strapi.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 config fixes.\n\n[![npm](https://img.shields.io/npm/v/strapi-security?color=red)](https://www.npmjs.com/package/strapi-security) [![downloads](https://img.shields.io/npm/dw/strapi-security)](https://www.npmjs.com/package/strapi-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 strapi-security --url https://cms.example.com\n1 critical, 2 high, 0 medium — 3 CONFIRMED via anonymous probe\n  CRITICAL  /api/articles   public-role read enabled — 1,204 rows reachable\n  HIGH      CORS            Origin reflected → cross-site credentialed reads\n  HIGH      /api/users      user list exposed (username + email)\n```\n\n## Why this exists\n\nStrapi powers a huge share of headless-CMS deployments, and the default\nUsers \u0026 Permissions model makes one mistake very easy: leaving `find`/`findOne`\nenabled for the **Public** role. The result is an API anyone can read. 2026\nalone brought a cluster of data-exposure CVEs around public endpoints\n([CVE-2026-27886](https://strapi.io/blog/headless-cms-security) relational\nfiltering oracle, CORS reflection, lookup-operator private-field leaks).\n\n`strapi-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 content-type | critical | anonymous `GET /api/{collection}` returns rows |\n| CORS reflects arbitrary Origin | high | sends a foreign `Origin`, sees it echoed in `Access-Control-Allow-Origin` |\n| `/api/users` user enumeration | high | anonymous `GET /api/users` returns the user list |\n| Relational-populate admin oracle | high | `?populate=createdBy` leaks admin fields |\n| GraphQL introspection in prod | medium | `__schema` query answered on `/graphql` |\n| Open first-admin registration | critical | `/admin/init` reports `hasAdmin:false` |\n\n## Usage\n\n```bash\n# Probe a live instance (guesses common collection names)\nnpx strapi-security --url https://cms.example.com\n\n# Learn your exact collection names from your local repo, then probe\nnpx strapi-security --url https://cms.example.com --discover ./my-strapi-app\n\n# Probe specific collections\nnpx strapi-security --url https://cms.example.com --collections articles,authors\n\n# Write a shareable HTML report\nnpx strapi-security --url https://cms.example.com --html report.html\n\n# Static only (no requests sent)\nnpx strapi-security --url https://cms.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 strapi-security\nstrapi-security --url https://cms.example.com\n```\n\nZero dependencies. Your data and credentials never leave your machine — every\nrequest goes straight from the tool to your Strapi instance.\n\n## Sister tools\n\nSame active-probe philosophy for the rest of the backend stack, all MIT:\n\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[directus-security](https://github.com/Perufitlife/directus-security) ·\n[convex-security](https://github.com/Perufitlife/convex-security) ·\n[hasura-security](https://github.com/Perufitlife/hasura-security) ·\n[payload-security](https://github.com/Perufitlife/payload-security)\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%2Fstrapi-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPerufitlife%2Fstrapi-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerufitlife%2Fstrapi-security/lists"}