The following versions of Articles are currently supported with security updates:
| Version | Supported |
|---|---|
| 0.1.x | ✅ |
| < 0.1 | ❌ |
Note: This is an early-stage project. Security updates will be provided for the latest 0.1.x release. Once the project reaches 1.0, we will maintain security support for the current major version and one previous major version.
Articles implements the following security measures:
- Auth0 - Delegated authentication via
Auth0.AspNetCore.Authentication(Authorization Code + PKCE) - Per-user data isolation - Enforce resource ownership in domain handlers using the authenticated user's claims
- Role-based authorization - Policies configured via Auth0 roles and claims
- Secrets management - Auth0 credentials stored in user secrets locally; environment variables or a secrets vault in production
- SQL injection protection - Entity Framework Core parameterized queries
- XSS protection - Blazor's automatic HTML encoding
- CSRF protection - Built-in anti-forgery tokens
- HTTPS enforcement - Recommended for production deployments
- OpenAI API key protection - Stored in user secrets or environment variables
- Input validation - All commands validate user input
- Error handling - Sensitive information not exposed in error messages
- User isolation - Database queries filtered by UserId
- Migration safety - Code-first migrations with version control
- Connection string security - Stored in appsettings.json (excluded from source control for production)
If you discover a security vulnerability in Articles, please report it responsibly:
Email: matthew.paulosky@outlook.com
Subject: [SECURITY] Articles Vulnerability Report
Please do NOT open a public GitHub issue for security vulnerabilities.
When reporting a security vulnerability, please include:
- Description - Clear description of the vulnerability
- Impact - Potential security impact and severity
- Steps to Reproduce - Detailed steps to reproduce the vulnerability
- Affected Versions - Which versions are affected
- Suggested Fix - If you have ideas for mitigation (optional)
- Your Contact Info - How we can reach you for follow-up
- Initial Response: Within 48 hours of report submission
- Status Update: Within 7 days with assessment and timeline
- Fix Timeline:
- Critical vulnerabilities: Within 7 days
- High severity: Within 14 days
- Medium/Low severity: Within 30 days
- We will work with you to understand and validate the vulnerability
- We will develop and test a fix before public disclosure
- We will credit you in the security advisory (unless you prefer anonymity)
- We request that you do not publicly disclose the vulnerability until we have released a fix
Security updates will be published:
- In the GitHub Security Advisories
- In the project CHANGELOG.md (if one exists)
- In release notes for security-related releases
When contributing to Articles, please follow these security guidelines:
- All code changes require review before merging
- Security-sensitive changes require additional scrutiny
- Never commit secrets, API keys, or passwords
- Add security-focused tests for authorization checks
- Test boundary conditions and edge cases
- Verify user isolation in integration tests
- Keep NuGet packages up to date
- Review dependency security advisories
- Use
dotnet list package --vulnerableto check for known vulnerabilities
- Use User Secrets for local development (
dotnet user-secrets) - Use Environment Variables for production
- Never commit
appsettings.Production.jsonwith secrets - Add sensitive files to
.gitignore
Web.E2E.Tests drives real Auth0 hosted-login flows for the 3 role-based test users
(Admin, Author, plain authenticated User) so Playwright can exercise real
browser-and-Auth0 sessions against the app's authorization gates. To run these tests
locally, set each user's credentials in the project's user secrets
(UserSecretsId is already configured on Web.E2E.Tests.csproj):
cd tests/Web.E2E.Tests
dotnet user-secrets set "Auth0:Admin:Username" "admin-test-user@example.com"
dotnet user-secrets set "Auth0:Admin:Password" "..."
dotnet user-secrets set "Auth0:Author:Username" "author-test-user@example.com"
dotnet user-secrets set "Auth0:Author:Password" "..."
dotnet user-secrets set "Auth0:User:Username" "user-test-user@example.com"
dotnet user-secrets set "Auth0:User:Password" "..."In CI, the equivalent values are supplied as environment variables using the
double-underscore convention (Auth0__Admin__Username, etc.), one NAME=value
line each in the repository's TEST_ENV secret, which ci.yml masks and exports to the test jobs.
If credentials are not configured — locally or in CI — the affected tests skip with a clear message rather than failing, so the suite stays green for contributors who haven't set up Auth0 test-user access.
- Validate all user input in CQRS handlers
- Use parameterized queries (Entity Framework Core does this automatically)
- Sanitize data before rendering in Blazor components (Blazor does this automatically)
- OpenAI API calls - Notes content is sent to OpenAI for AI features (embeddings, summaries, tags)
- Local development - Uses SQL Server Express with Trusted Connection
- No rate limiting - Consider implementing rate limiting for production
- No audit logging - User actions are not currently logged
- Use HTTPS - Enable HTTPS and HSTS
- Secure connection strings - Use Azure Key Vault or similar
- Enable logging - Add security event logging
- Rate limiting - Implement API rate limiting
- Regular updates - Keep .NET and dependencies updated
- Security headers - Add security headers (CSP, X-Frame-Options, etc.)
- Monitor dependencies - Use GitHub Dependabot for security alerts
Thank you for helping keep Articles secure!