Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update extension.py to clean request.path before logging it #351

Merged
merged 2 commits into from May 4, 2024

Conversation

aneshujevic
Copy link
Contributor

Hi @corydolphin

In this PR I've used Python's repr method to escape special characters and print them as ordinary characters as a bugfix for CVE-2024-1681 - https://nvd.nist.gov/vuln/detail/CVE-2024-1681.

This should resolve #349.

@andrew-womeldorf
Copy link

Confirmed that the exploit PoC is resolved with this patch

flask_cors/extension.py Outdated Show resolved Hide resolved
@corydolphin
Copy link
Owner

Thank you very much for the contribution and fixing this issue.

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.

CVE-2024-1681 response/patching
4 participants