Repository navigation
Conversation
Alc-Alc
marked this pull request as ready for review
November 24, 2026 03:54
Alc-Alc
commented
Nov 24, 2026
Contributor
Author
There was a problem hiding this comment.
To reviewers
- does anyone purge by hand (fastly ui or api) using a key with any character other than letters, digits,
.,_or-? - does any script or job outside this repo do the same?
if the answer to all of the above is no, the PR can be merged as is. if not, i'll add those characters to the pattern
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Surrogate-Keyheader, django raisedBadHeaderErrorand the 404 became a 500..,_or-, anything else getspydotorg-apponlySome sample paths that triggered this
/downloads.%20%0D3/%0AURL-%D0%B0%D0%B4%D1%80%D0%B5%D1%81/%0ASet-Cookie:crlfinjection=crlfinjection/downloads.%203,/URL-%D0%B0%D0%B4%D1%80%D0%B5%D1%81(not original events, caught during local development)Fixes PYDOTORG-PROD-1M5 (~62k events / ~25k in 90 days)
Fixes PYDOTORG-PROD-1M9 (~1.4k events / 205 in 90 days)
Before / after (status code,
Surrogate-Keyheader)/downloads.%203pydotorg-app downloads. 3pydotorg-app/downloads.%20%0D3Surrogate-Keypydotorg-app/%0AURL-%D0%B0%D0%B4%D1%80%D0%B5%D1%81Surrogate-Keypydotorg-app/URL-%D0%B0%D0%B4%D1%80%D0%B5%D1%81=?utf-8?b?cHlkb3RvcmctYXBwIFVSTC3QsNC00YDQtdGB?=pydotorg-app