Skip to content

Fix CodeQL regex security alerts#351

Merged
liquidsec merged 2 commits intodevfrom
regex-fixes
Feb 27, 2026
Merged

Fix CodeQL regex security alerts#351
liquidsec merged 2 commits intodevfrom
regex-fixes

Conversation

@liquidsec
Copy link
Collaborator

Replace ReDoS-vulnerable URL validation regex in cli.py with urllib.parse.urlparse. Fix overly-broad character range A-z (which includes []^_`) to A-Z in symfony_signedurl.py regex patterns.

Replace ReDoS-vulnerable URL validation regex in cli.py with
urllib.parse.urlparse. Fix overly-broad character range A-z (which
includes [\]^_`) to A-Z in symfony_signedurl.py regex patterns.
Resolve merge conflict: validate_url was moved to helpers.py on dev.
Apply the same urlparse fix there, replacing the vulnerable regex.
@liquidsec liquidsec merged commit edb4e21 into dev Feb 27, 2026
0 of 6 checks passed
@liquidsec liquidsec deleted the regex-fixes branch February 27, 2026 23:50
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ea4ebc0) to head (3601c57).
⚠️ Report is 6 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##               dev      #351    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           25        24     -1     
  Lines         2423      1848   -575     
==========================================
- Hits          2423      1848   -575     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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