At DevAuthKit, security is foundational. Because this toolkit orchestrates authentication credentials, session lifecycles, cryptographic tokens, and compliance audit trails, we maintain an uncompromising posture toward security assurance and vulnerability remediation.
We actively collaborate with security researchers, bug bounty hunters, and developers worldwide to safeguard the open-source ecosystem.
We provide security updates and patches according to the following support matrix:
| Release Line | Status | Security Patches |
|---|---|---|
v1.10.x |
Active / Current | ✅ Full Support (Immediate Hotfixes) |
v1.9.x |
Maintenance | |
< v1.9.0 |
End of Life (EOL) | ❌ Unsupported — Please upgrade immediately |
Important
We strongly advise all production deployments to run the latest patch release on the current minor branch to benefit from the latest cryptographic primitives and security mitigations.
Please do NOT disclose security vulnerabilities through public GitHub issues, pull requests, or public forums. Public disclosure puts production systems using DevAuthKit at immediate risk.
DevAuthKit uses GitHub's native Private Vulnerability Reporting. This provides an encrypted, private channel between researchers and the core maintainer:
👉 Submit a Private Security Advisory
If GitHub Private Reporting is unavailable or you prefer encrypted direct communication:
- Security Lead: Gautam Sharma (@GautamSharma-coder)
- Email: [email protected]
- Subject Line:
[SECURITY] DevAuthKit Vulnerability Report - <Brief Description>
To help us validate, triage, and patch the issue swiftly, please include as much of the following details as possible:
- Vulnerability Type: (e.g., Authentication Bypass, Token Forgery, Replay Attack, Timing Leak, SSRF, Merkle Chain Tampering, Privilege Escalation).
- Affected Component: Specify the relevant file, function, or route (e.g.,
server/dpop.js,server/audit.js, or adapter modules). - Proof of Concept (PoC): Minimal, reproducible Node.js test script, cURL command, or request trace demonstrating the exploit.
- Environment: Exact
devauthkitpackage version, Node.js runtime version, database adapter (Prisma, Drizzle, Mongoose), and OS. - Impact Assessment: Estimated CVSS score and description of potential real-world harm.
- Suggested Remediation: If you have identified a potential patch or mitigation, please feel free to share.
We adhere to a standard Coordinated Vulnerability Disclosure (CVD) process:
| Milestone | Target Response Time | Action |
|---|---|---|
| Initial Acknowledgment | < 24 hours | Receipt confirmed; assigned an internal triage ticket. |
| Triage & Validation | < 72 hours | Vulnerability reproduced; severity and CVSS rating determined. |
| Remediation & Testing | < 7–14 days | Patch engineered and validated against test suites and edge cases. |
| Patch Release | Immediate upon verification | New release published to npm and GitHub Releases. |
| Public Advisory | Coordinated | CVE assigned (if applicable) and credited advisory published. |
We respect a standard 90-day embargo policy before public disclosure, allowing sufficient time for developers to upgrade their installations.
- Flaws in cryptographic primitives, token parsing, or signature validation.
- RFC 9449 DPoP key-binding bypasses or proof validation flaws.
- Session fixation, session hijacking, or revocation epoch bypasses.
- SHA-256 Merkle chain audit log tampering or verification bypasses.
- Authentication / authorization bypasses in
auth.protect()or middleware guards. - Timing attack vulnerabilities in secret or signature comparisons.
- Injection flaws (SQLi, NoSQLi) within database adapters.
- Server-Side Request Forgery (SSRF) in webhook dispatchers or OAuth discovery endpoints.
- Attacks requiring physical access to a developer's workstation or server host.
- Weak JWT / session secrets explicitly set by the end user (e.g.,
JWT_SECRET="12345"). - Missing rate limits when explicitly disabled via user configuration.
- Denial of Service (DoS) attacks on non-production test endpoints.
- Social engineering, phishing, or credential stuffing attacks against end-user deployments.
We consider security research conducted under this policy to be:
- Authorized: We will not pursue legal action against security researchers who report vulnerabilities in good faith and adhere to these guidelines.
- Coordinated: We will work with you to understand and address the issue, recognizing your contribution.
If at any point you are unsure whether your testing is safe or authorized, please reach out to our security contact prior to conducting testing.
We believe in giving credit where credit is due. Upon successful validation and release of a patch, we will:
- Publicly credit your name/handle in the GitHub Security Advisory.
- List your contribution in our official Release Notes and CHANGELOG.
- Feature you in the DevAuthKit Security Hall of Fame.
If you are using DevAuthKit in production, we strongly recommend enforcing the following baseline practices:
- Enforce TLS/HTTPS: Never run authentication endpoints over unencrypted HTTP.
- Cryptographic Secret Entropy: Use high-entropy, cryptographically random keys for
JWT_SECRET(minimum 32+ bytes generated viacrypto.randomBytes(32).toString('hex')). - Strict CORS Whitelisting: Explicitly declare authorized origin domains. Never use
corsOrigin: "*"in production. - Secure Cookie Flags: Ensure
cookie.secure: true,cookie.httpOnly: true, andcookie.sameSite: "lax" | "strict". - DPoP Token Protection: Enable RFC 9449 DPoP enforcement on critical API routes to prevent stolen bearer token reuse.
- Audit Trail Archival: Periodically export and cold-store immutable audit logs via
GET /auth/audit-logs/exportfor regulatory compliance. - Dependency Audits: Run
npm auditregularly to catch CVEs in upstream dependencies.
Thank you for contributing to the security, reliability, and resilience of DevAuthKit!