Skip to content

Security: AlbanAndrieu/nabla-site-apache

SECURITY.md

Security Summary

Security Improvements Made

Vulnerabilities Addressed

  • Initial State: 25 vulnerabilities (7 moderate, 16 high, 2 critical)
  • Final State: 17 vulnerabilities (4 moderate, 13 high, 0 critical)
  • Improvement: Eliminated 2 critical and 6 other vulnerabilities

Changes Made

  1. Removed webdriver-manager (v12.1.9)

    • Had critical vulnerabilities in form-data and request dependencies
    • Not used anywhere in the codebase
    • Removed along with 64 transitive dependencies
  2. Removed @astrojs/vercel (v9.0.2)

    • Not used in the project
    • Had high severity vulnerabilities in path-to-regexp
  3. Removed crypto package (v1.0.1)

    • Not used anywhere in the codebase
    • Unnecessary dependency
  4. Total Impact:

    • Removed 296 packages
    • Reduced from 836 to 476 packages
    • Significantly reduced attack surface

Remaining Vulnerabilities

The 17 remaining vulnerabilities are primarily in the vercel package and its transitive dependencies:

  • path-to-regexp (CVE: GHSA-9wv6-86v2-598j)
    • Severity: High
    • Issue: Backtracking regular expressions (ReDoS)
    • Status: Requires Vercel to update their dependencies
    • Mitigation: These are in deployment tooling, not runtime code

These vulnerabilities are in development/deployment tools (Vercel CLI) and don't affect the runtime security of the static website itself.

CodeQL Analysis

CodeQL security scanning was run with 0 alerts found:

  • ✅ JavaScript: No security issues detected

Recommendations

  1. Monitor Vercel Updates: Keep an eye on Vercel CLI updates that address the path-to-regexp vulnerabilities
  2. Regular Audits: Run npm audit regularly to catch new vulnerabilities
  3. Dependency Updates: Keep dependencies up to date with npm update
  4. Security Headers: Consider adding security headers via Cloudflare or Vercel configuration

Conclusion

The project's security posture has been significantly improved by:

  • Eliminating all critical vulnerabilities
  • Removing unused dependencies with known security issues
  • Reducing the dependency tree by ~35%
  • Passing CodeQL security analysis with zero alerts

The remaining vulnerabilities are in deployment tooling and do not affect the production website's security.

There aren't any published security advisories