Skip to content

fix(security): vulnerability where all headers are passed on redirect#2081

Open
ramsessanchez wants to merge 3 commits intomainfrom
ramsess/fix-redirectHeaderVulnerability
Open

fix(security): vulnerability where all headers are passed on redirect#2081
ramsessanchez wants to merge 3 commits intomainfrom
ramsess/fix-redirectHeaderVulnerability

Conversation

@ramsessanchez
Copy link
Contributor

@ramsessanchez ramsessanchez requested a review from a team as a code owner February 12, 2026 19:47
@ramsessanchez ramsessanchez changed the title fix vulnerability where all headers are passed on redirect fix(security): vulnerability where all headers are passed on redirect Feb 12, 2026
@sonarqubecloud
Copy link

if (!sameScheme || !sameHost || !samePort) {
requestBuilder.removeHeader("Authorization");
requestBuilder.removeHeader("Cookie");
requestBuilder.removeHeader("Proxy-Authorization");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as for dotnet microsoft/kiota-dotnet#653 (comment)

@github-project-automation github-project-automation bot moved this to In Progress 🚧 in Kiota Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress 🚧

Development

Successfully merging this pull request may close these issues.

2 participants