Skip to content

Conversation

@akhiq
Copy link

@akhiq akhiq commented Nov 6, 2025

No description provided.

claude and others added 4 commits November 6, 2025 01:30
Major changes:
1. Upgrade dependencies to Python 3 and modern versions
   - Flask: 0.10.1 → 3.0.0+ (9+ years of security fixes)
   - sh: 1.11 → 2.0.0+
   - Removed deprecated dependencies (argparse, wsgiref now in stdlib)

2. Fix critical regex vulnerability in host validation
   - Added length validation (max 253 chars per RFC 1035)
   - Fixed improperly escaped hyphen in regex character class
   - Added validation for leading/trailing dots and hyphens
   - Prevent consecutive dots in hostnames
   - Better protection against command injection

3. Modernize Python 2 → Python 3
   - Replace deprecated flask.escape() with markupsafe.escape()
   - Update wsgi.py shebang to python3
   - Update README to require Python 3.8+
   - All syntax validated for Python 3 compatibility

Security impact: Fixes multiple CVEs in outdated Flask/Jinja2 versions
and hardens input validation against potential exploits.
Ignore Python bytecode (__pycache__, *.pyc), virtual environments,
sensitive instance configs, IDE files, and test files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants