Skip to content

Fix Vary parsing in cache control enforcement#37426

Merged
ClearlyClaire merged 1 commit intomastodon:mainfrom
MegaManSec:b3
Jan 9, 2026
Merged

Fix Vary parsing in cache control enforcement#37426
ClearlyClaire merged 1 commit intomastodon:mainfrom
MegaManSec:b3

Conversation

@MegaManSec
Copy link
Contributor

Parse the Vary response header as a comma-separated list instead of splitting on whitespace, so tokens like "Authorization, Accept-Language" correctly match "authorization" and trigger private/no-store when sensitive request headers are present.

Parse the Vary response header as a comma-separated list instead of splitting on
whitespace, so tokens like "Authorization, Accept-Language" correctly match
"authorization" and trigger private/no-store when sensitive request headers are
present.
@ClearlyClaire ClearlyClaire added the to backport PR needed to be backported label Jan 9, 2026
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Jan 9, 2026
Merged via the queue into mastodon:main with commit b55982c Jan 9, 2026
35 checks passed
@ClearlyClaire ClearlyClaire removed the to backport PR needed to be backported label Jan 19, 2026
mistydemeo pushed a commit to mistydemeo/mastodon that referenced this pull request Jan 20, 2026
kmycode pushed a commit to kmycode/mastodon that referenced this pull request Jan 20, 2026
mimikun pushed a commit to mimikun/mastodon that referenced this pull request Jan 23, 2026
mimikun pushed a commit to mimikun/mastodon that referenced this pull request Jan 23, 2026
Ember-ruby pushed a commit to Ember-ruby/mastodon-glitch that referenced this pull request Jan 24, 2026
mo-rijndael pushed a commit to mastodon-ml/mastodon that referenced this pull request Jan 25, 2026
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

Comments