Skip to content

Document 8.3 short-name behavior in static file middleware - #37958

Merged
guardrex merged 1 commit into
dotnet:mainfrom
cincuranet:short-name-static-files
Oct 20, 2026
Merged

guardrex merged 1 commit into
dotnet:mainfrom
cincuranet:short-name-static-files

Conversation

@cincuranet

@cincuranet cincuranet commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #37957.


Internal previews

File Preview link
aspnetcore/fundamentals/static-files.md Learn preview

Build report

Copilot AI balanced review requested due to automatic review settings October 20, 2026 12:27
@cincuranet
cincuranet requested a review from guardrex as a code owner October 20, 2026 12:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused documentation change accurately explains the behavior and mitigation, with no unresolved findings.

No open issues 🎉

What changed in this PR

Clarifies 8.3 short-name behavior in the static file security guidance, addressing #37957.

Changes:

  • Explains that content types are determined from requested aliases, which can bypass unknown-extension filtering.
  • Advises keeping private files outside directories served by static file middleware.
File Description
aspnetcore/​fundamentals/​static-files.md Adds a security note about short-name aliases and extension filtering.

Review effort: Balanced

@cincuranet
cincuranet force-pushed the short-name-static-files branch from 897d32f to b5caabf Compare October 20, 2026 12:36
@cincuranet
cincuranet enabled auto-merge (squash) October 20, 2026 12:36

@guardrex guardrex left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:shipit:

@guardrex
guardrex disabled auto-merge October 20, 2026 12:50
@guardrex
guardrex merged commit f339cd9 into dotnet:main Oct 20, 2026
8 checks passed
@cincuranet
cincuranet deleted the short-name-static-files branch October 20, 2026 14:36
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.

Document 8.3 short-name behavior in static file middleware

3 participants