At Cosmic, security and user safety are fundamental priorities. We maintain a proactive posture to ensure data integrity, user privacy, and protection against web vulnerabilities.
We actively release security updates for the following version branch:
| Version Branch | Supported | Notes |
|---|---|---|
main |
β Yes | Production release branch |
| Prior Releases | β No | Please upgrade to main |
If you discover a security vulnerability or potential issue, please disclose it responsibly.
- Email: Send vulnerability reports to
security@cosmic-roadmap.com(or contact the maintainer directly via GitHub). - Details to Include:
- Clear description of the vulnerability and potential impact.
- Detailed step-by-step instructions or proof-of-concept payload to reproduce the issue.
- Affected routes, files, or API parameters.
- Acknowledgement: Within 24 to 48 hours.
- Assessment & Fix: Critical vulnerabilities will be patched within 7 business days.
β οΈ Notice: Please do not open public GitHub issues for unpatched security vulnerabilities.
Cosmic implements a defense-in-depth security model across all components:
- API Key Isolation: All Groq AI requests pass through the serverless route (
/api/ai). Third-party API keys are stored in secure server environment variables and are never exposed to client bundles or browser DOM.
- Zod Validation: Every external input, route parameter, slug, and API payload is validated against strict Zod schemas (
src/lib/security.ts). Invalid requests are rejected at the edge.
- DOMPurify HTML Cleaning: Markdown responses generated by AI or rendered from content collections pass through DOMPurify with strict element allowlists to prevent XSS (Cross-Site Scripting).
- Content Security Policy (CSP): Applied to enforce strict source origin rules (
default-src 'self'). - Standard Security Headers: Enforces
X-Frame-Options: DENY,X-Content-Type-Options: nosniff, and secureReferrer-Policy.
- Brute-Force & Abuse Mitigation: Keyed rate-limiting mechanisms prevent automated scraping, credential stuffing, or serverless endpoint abuse.
- Cross-Site Scripting (XSS) in roadmap diagrams, search, or drawer interfaces.
- Serverless API proxy bypass or key leakage.
- Unauthorized access or data manipulation in progress storage mechanisms.
- Content Security Policy (CSP) bypasses.
- Denial of Service (DoS/DDoS) attacks requiring massive traffic volume.
- Attacks requiring physical access to an unlocked victim device.
- Issues related to third-party browser extensions.